-
Notifications
You must be signed in to change notification settings - Fork 296
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
refactor(site): unify components with export const arrow function, simplify structure in system and typography #1471
base: master
Are you sure you want to change the base?
refactor(site): unify components with export const arrow function, simplify structure in system and typography #1471
Conversation
sukvvon
commented
Aug 31, 2024
•
edited
Loading
edited
- unify components with export const arrow function, add Props interface for each component,
- simplify structure in system and typography
….ts like system, unify with export arrow func style
…d Props interface for each component
|
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 these changes. I have some minor comments.
@@ -0,0 +1,2 @@ | |||
export * from './reset.css'; |
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.
I'd honestly prefer not to have barrel files. They just cause indirection and don't serve much of a purpose in a relatively small app like this docs site.
@@ -2,7 +2,11 @@ import { ReactNode } from 'react'; | |||
import { Box } from '../system'; | |||
import * as styles from './Blockquote.css'; | |||
|
|||
export default (props: { children: ReactNode }) => { | |||
export interface BlockquoteProps { |
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.
This export
, and probably all the other export
s you've added to prop types, are not necessary because those types aren't used outside the files they're defined in. They can be removed.