-
-
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
Added rowStyle prop to SimpleList #5252
Conversation
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.
Thanks for your PR! Can you rebase on next
and make test pass please?
Hey, thanks for the pull request. Would you mind to also run the prettier command ( |
I have ran the |
5403733
to
281bb0f
Compare
281bb0f
to
557e3a8
Compare
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.
Can you please revert the two unrelated changes (cypress.json and package.json)?
Ok, sorry guys for the other PR, I got little bit confused with you asked me to do but I think now it should be ok? I rebased to the @djhi Yes, I will revert those changes. I think they came after I ran the |
Ah sorry about that, I'll take a loot at its configuration. Thanks for reporting it! |
It's fine, I am a newly contributor so still getting to grips. If some other changes are needed just ping me and I will update the branch! :) |
Ignore my comments on the unrelated files. It is indeed prettier related and it's actually right. |
<ListItem | ||
button={!!linkType as any} | ||
style={ | ||
rowStyle ? rowStyle(data[id], rowIndex) : null |
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 you didn't replace null
with undefined
as requested by @jdemangeon. Can you please fix that?
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.
I have but accidentially reverted this one also. Brought it back again, sorry.
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.
Thanks!
Sorry again, would you mind documenting the feature as well ? The file to update is https://github.com/marmelab/react-admin/blob/master/docs/List.md#the-simplelist-component |
I was actually already doing this :) No worries - will update in a while. |
You said you rebased your PR on |
Thanks for the patience - finally did it the right way I hope! |
Yep, the PR is on the right branch now. We're just waiting for your documentation update. |
I added just a new row in the table with props as it is well described in the Datagrid section. Is it needed to provide again a usage example? |
It would be way better 👍 Thanks for taking the time to complete this! |
Sorry for the late reply - I have added the usage of the prop with editing the existing example in order to keep the page tight and clean. Also tried to stick to the Datagrid example reference. If anything is missing just comment and I'll polish it till the end :) (responding quite faster from now on) |
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.
👍 Thanks a lot!
Closes #5253