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

feat: List all properties of an entry #45

Merged
merged 9 commits into from
Sep 2, 2022
Merged

Conversation

aadarsh-ram
Copy link
Collaborator

What

  • Completed ListAllProperties.jsx

@aadarsh-ram aadarsh-ram requested a review from a team as a code owner August 14, 2022 07:09
@alexgarel alexgarel changed the base branch from main to editentryinit August 23, 2022 15:55
Base automatically changed from editentryinit to main August 29, 2022 14:40
@aadarsh-ram aadarsh-ram requested a review from nobeeakon August 30, 2022 15:50
if (key.startsWith('prop')) {

// Removing "prop_" prefix from key to render only the name
const property_name = key.split('_').slice(1).join('_');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about doing this property_name extraction only when the property name is shown? I mean, inside the <Typography sx={{...}}>{property}:</Typography>. The renderedProperties doesn't seems to care if it has or not the preffix prop_, and the issue is that in the onChange you need to add it again

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nobeeakon renderedProperties does care about the prefix prop_. The key-value pairs that have to be rendered on the webpage should have the prefix prop_. Hence, the appropriate checks have been done in the start.

Copy link
Collaborator

@nobeeakon nobeeakon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work 🚀

@nobeeakon nobeeakon merged commit f6f8bc2 into main Sep 2, 2022
@nobeeakon nobeeakon deleted the initeditproperties branch September 2, 2022 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

2 participants