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: Restructure components to live in their own separate folders #72

Merged
merged 5 commits into from
Jun 15, 2023

Conversation

meissadia
Copy link
Contributor

Closes #71

Changes

  • Move components into their own folders
  • Tried to address linter errors where possible
  • Had to re-write a some stuff in the TableComplex component because the VSCode auto-formatter kept changing the logic I had written and was breaking it. Today, I hate TypeScript...

How to test this PR

  1. yarn test -> all look good
  2. Storybook click-through -> looks good

@netlify
Copy link

netlify bot commented Jun 6, 2023

Deploy Preview for cfpb-design-stories ready!

Name Link
🔨 Latest commit 35d4d50
🔍 Latest deploy log https://app.netlify.com/sites/cfpb-design-stories/deploys/648b3921c38e7f0008181b64
😎 Deploy Preview https://deploy-preview-72--cfpb-design-stories.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 settings.

@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from '@storybook/react';
import type { SyntheticEvent } from 'react';
import { Banner } from './Banner';
import { Banner } from '.';
Copy link
Member

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.

Copy link
Contributor Author

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>
@contolini contolini merged commit 7b5beb4 into main Jun 15, 2023
6 checks passed
@contolini contolini deleted the 71-separate-component-folders branch June 15, 2023 16:38
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.

[Refactor] Separate components into folders
3 participants