-
Notifications
You must be signed in to change notification settings - Fork 9
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
Remove usage of deprecated React API #1414
Conversation
Deployed to Cloudflare Pages
|
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.
LGTM
export const SearchButton = (props: ButtonProps & SearchButtonProps) => ( | ||
<StyledSearchButton variant="contained" color="primary" {...props} /> | ||
) |
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 would rather see something like this:
export const SearchButton = (props: ButtonProps & SearchButtonProps) => ( | |
<StyledSearchButton variant="contained" color="primary" {...props} /> | |
) | |
const PlainTextButton = ({variant = 'text', color: 'inherit', ...restProps}: ButtonProps) => ( | |
<StyledPlainTextButton variant={variant} color={color} {...restProps} /> | |
) |
But not a big deal.
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 vote for original
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.
some hope for a nicer solution in the future emotion-js/emotion#2573 (comment)
Fixes #1410