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

fix: type button and refactor SectionWrapper #518

Merged

Conversation

austinwoon
Copy link
Contributor

@austinwoon austinwoon commented Oct 10, 2023

Closes #517

Solution

  • Refactor SectionWrapper to not return chakra factory, but be a conditional wrapper that forwards props over to the child chakra div or button. This is so that the type=button prop can be passed to the button element.

@netlify
Copy link

netlify bot commented Oct 10, 2023

Deploy Preview for objective-bell-0ffbfb canceled.

Name Link
🔨 Latest commit 529f96e
🔍 Latest deploy log https://app.netlify.com/sites/objective-bell-0ffbfb/deploys/6530d7220e29db00081d5efb

Copy link
Collaborator

@karrui karrui left a comment

Choose a reason for hiding this comment

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

good catch. sorry it took so long to review! will merge in after the comment is addressed

react/src/Sidebar/SidebarList.tsx Outdated Show resolved Hide resolved
react/src/Sidebar/SidebarList.tsx Outdated Show resolved Hide resolved
@austinwoon austinwoon requested a review from karrui October 19, 2023 07:33
@karrui
Copy link
Collaborator

karrui commented Nov 8, 2023

Sorry forgot

@karrui karrui merged commit 6869ee8 into opengovsg:main Nov 8, 2023
9 of 10 checks passed
@karrui karrui mentioned this pull request Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants