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

Sur row style #211

Merged
merged 3 commits into from
Mar 15, 2022
Merged

Sur row style #211

merged 3 commits into from
Mar 15, 2022

Conversation

haihan-lin
Copy link
Collaborator

@haihan-lin haihan-lin commented Mar 13, 2022

Separate out surgery rows.

Expected behavior: the SVG will hide if the text overflows.

Copy link
Member

@JackWilb JackWilb left a comment

Choose a reason for hiding this comment

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

Looks good. I just left one suggestion for something I noticed

const store = useContext(Store);

return (<SurgeryListComp
key={`${isSubSurgery ? parentSurgery! + '-' : ''}${listItem.procedureName}`}
Copy link
Member

Choose a reason for hiding this comment

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

parentSurgery! is not best practice. You should check if it exists above, and if not, you could throw an error.

Alternatively, you could either give it a default value if it's not specified (an empty string, perhaps) or require that it has a value

@haihan-lin haihan-lin merged commit 92b052d into main Mar 15, 2022
@haihan-lin haihan-lin deleted the sur-row-style branch March 15, 2022 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants