-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Convert products demo example into typescript #4758
Conversation
@@ -75,6 +83,7 @@ const LoadedGridList = ({ ids, data, basePath, width }) => { | |||
> | |||
{ids.map(id => ( | |||
<GridListTile | |||
// @ts-ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems another attempt was done at migrating this file (see #4592). Would you mind collaborating with the author of that PR instead of including GridList in your PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
Now that #4516 is merged, can you please rebase your PR to make your changes more apparent? |
@fzaninotto sorry I forgot to mention you after rebase I think this is ready for review, should I remove GridList from this PR? |
Yes, please remove GridList and share your efforts on #4592 for that component. |
examples/demo/src/types.ts
Outdated
@@ -73,6 +73,7 @@ export interface FieldProps<T extends Record = Record> { | |||
record?: T; | |||
source?: string; | |||
basePath?: string; | |||
resource: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be optional as it's injected by react-admin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in #4847
Thanks! |
this depends on #4516, refs #4505