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

thumbnailWidth prop not available for Dashboard component #1524

Closed
OskarPersson opened this issue May 5, 2019 · 1 comment
Closed

thumbnailWidth prop not available for Dashboard component #1524

OskarPersson opened this issue May 5, 2019 · 1 comment
Labels
Bug React React components or other React integration issues Types Issues relating to the Typescript definition files

Comments

@OskarPersson
Copy link

The docs for the <Dashboard/> component states that

The component supports all @uppy/dashboard options as props.

However, I can't set thumbnailWidth when using it. This is the error I get from TypeScript:

Type '{ uppy: Uppy; thumbnailWidth: number; }' is not assignable to type 'IntrinsicAttributes & DashboardProps & { children?: ReactNode; }'.
  Property 'thumbnailWidth' does not exist on type 'IntrinsicAttributes & DashboardProps & { children?: ReactNode; }'.  TS2322

    94 |   return (
    95 |     <div>
  > 96 |       <Dashboard uppy={uppy} thumbnailWidth={300} />
       |        ^
    97 |     </div>
    98 |   );
    99 | };
@goto-bus-stop goto-bus-stop added React React components or other React integration issues Types Issues relating to the Typescript definition files and removed Triage labels May 8, 2019
@goto-bus-stop
Copy link
Contributor

Thanks for the report! It works at runtime but is missing from the typings file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug React React components or other React integration issues Types Issues relating to the Typescript definition files
Projects
None yet
Development

No branches or pull requests

2 participants