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

Add modal component, story, and theme #74

Merged
merged 1 commit into from
Sep 3, 2024
Merged

Conversation

pratishta
Copy link
Contributor

Closes #59

Copy link

netlify bot commented Aug 28, 2024

Deploy Preview for meek-klepon-586e39 ready!

Name Link
🔨 Latest commit d959d4b
🔍 Latest deploy log https://app.netlify.com/sites/meek-klepon-586e39/deploys/66d70de96fc7110008feccc1
😎 Deploy Preview https://deploy-preview-74--meek-klepon-586e39.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@pratishta pratishta marked this pull request as ready for review August 28, 2024 14:46
@pratishta pratishta requested a review from a team August 28, 2024 14:46
Copy link
Contributor

@TangoYankee TangoYankee left a comment

Choose a reason for hiding this comment

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

I think the onClose argument in the Modal story makes things more convoluted than they need to be. I opened a PR against this one to show what I mean. Let me know what you think.

@pratishta
Copy link
Contributor Author

@TangoYankee Good catch. I updated the Drawer component to also have its onClose actually function and removed it from Modal

src/components/Modal/index.tsx Outdated Show resolved Hide resolved
Update onClose in Modal and Drawer

Change name to toggleOpen

Include ModalBodyProps and export remaining sub components

Add close button props
@pratishta pratishta merged commit bf98bb9 into main Sep 3, 2024
5 checks passed
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.

Add modal component
2 participants