-
Notifications
You must be signed in to change notification settings - Fork 370
chore(docs): use static values in demos #11769
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
chore(docs): use static values in demos #11769
Conversation
Preview: https://patternfly-react-pr-11769.surge.sh A11y report: https://patternfly-react-pr-11769-a11y.surge.sh |
|
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.
We should make a similar update to the TimestampBasicFormats example file
@Mash707 for now we could just update those random values in the PaginatedTable file itself |
@thatblindgeye There are 25 entries for this example https://www.patternfly.org/patterns/right-to-left/react-demos/paginated-table/, this would make the source code pretty big with unnecessary information. Let me know what you think |
45b61dd
to
a511304
Compare
@Mash707 Ah yeah fair, may not hurt to have a separate file for that data then |
a511304
to
3020895
Compare
@thatblindgeye regarding this example I have few things to clarify:
|
@Mash707 one idea could be instead of hard coding the data values in that new sampleData2 file, setting the values of each row's data to the keys of the translation file. So a row's data structure in sampleData2 could look like:
Then in the demo file itself, we would map over this data structure ^ to get the actual values we want (so something like |
@thatblindgeye great idea! its seems to work pushing the changes. Let me know what you think. |
3020895
to
c8b132e
Compare
I have made changes to |
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.
Non-blocking nit below, I'll leave it up to you if you think it's worth changing or keeping as-is.
Can we also just rename the new data file to sampleDataRTL
? Just to make it a little clearer its intent.
For the JSX file for this demo, we should be fine to just remove it. I'm assuming when it was converted to TS in #10164 we just forgot to remove the old JSX file.
c8b132e
to
2e0e252
Compare
Your changes have been released in:
Thanks for your contribution! 🎉 |
* chore(docs): use static values in demos * updated time stamp basic format example * added static values for RTL demo * added static values for RTL demo * removed url and deleted paginatedTable.jsx * updated import statement * updated import statement
Closes #11768