Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed prop type: <Sheet> can only have <Column>'s as children. #16

Open
Ridermansb opened this issue May 10, 2018 · 2 comments
Open

Failed prop type: <Sheet> can only have <Column>'s as children. #16

Ridermansb opened this issue May 10, 2018 · 2 comments

Comments

@Ridermansb
Copy link

An basic example..

<Workbook
  filename="test.xlsx"
  element={
    <span style={exportStyle} title="Export data to Microsoft Excel file">
      <img src={XlsIcon} width="40" alt="right slide" />
    </span>
  }
>
    <Workbook.Sheet
      data={[ 1,2,3,4 ]}
      name="Testing"
    >
      <Workbook.Column label="v1" value="v1" />
      <Workbook.Column label="v2" value="v2" />
      <Workbook.Column label="v3" value="v3"  />
      <Workbook.Column label="v4" value="v4" />
    </Workbook.Sheet>
</Workbook>

throw this error

Failed prop type: can only have 's as children.

@sudheeshcm
Copy link

@Ridermansb Did you solve this issue? If yes, what was the issue and how did u solve it?

@Ridermansb
Copy link
Author

Hey @sudheeshcm .. was a long time ago. Don't remember :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants