-
Notifications
You must be signed in to change notification settings - Fork 5
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: Restructure components to live in their own separate folders #72
Conversation
✅ Deploy Preview for cfpb-design-stories ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
@@ -1,6 +1,6 @@ | |||
import type { Meta, StoryObj } from '@storybook/react'; | |||
import type { SyntheticEvent } from 'react'; | |||
import { Banner } from './Banner'; | |||
import { Banner } from '.'; |
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.
Thanks for reorganizing everything! Curious: Is there any advantage to renaming the components to index.tsx
? I kind of prefer the more verbose Component.tsx
filename because it makes it easier to find the file in my text editor.
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.
Brevity is probably the main win there. import { Banner } from './Banner/Banner.tsx'
felt excessive but I'm fine with prioritizing dev experience.
I will update these names.
Co-authored-by: Chris Contolini <contolini@users.noreply.github.com>
Closes #71
Changes
How to test this PR
yarn test
-> all look good