-
Notifications
You must be signed in to change notification settings - Fork 778
refactor: comment input to styled components #596
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: comment input to styled components #596
Conversation
|
@shmesa22 Welcome to GitPoint! Can you add some comments or screenshots to make sure component styles are not broken? |
alejandronanez
left a comment
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.
- Add flow annotation to
PostButtonIcon - Add screenshot(s) of your changes
| View | ||
| ); | ||
|
|
||
| const PostButtonIcon = ({ style }) => <Icon name="send" iconStyle={style} />; |
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 think you need to add props validation to this function.
What I think is that you need to do something like:
type PostButtonIconProps = {
style: Object
};
const PostButtonIcon = ({ style } : PostButtonIconProps)=> <Icon name="send" iconStyle={style} />;PostButtonIconProps is a flow type annotation.
Welcome to Gitpoint! Let us know if you have any other question!
alejandronanez
left a comment
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 LGTM.
Any thoughts @andrewda @housseindjirdeh @machour



Related #532