-
Notifications
You must be signed in to change notification settings - Fork 301
feat(component-library): initialize component library #2042
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(component-library): initialize component library #2042
Conversation
|
@cprussin is attempting to deploy a commit to the Pyth Network Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
e526ae6 to
2458067
Compare
2458067 to
bce8513
Compare
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.
Great :D
| const ButtonInner = (props: OwnProps) => ( | ||
| <> | ||
| {"beforeIcon" in props && <Icon icon={props.beforeIcon} />} | ||
| {"children" in props && props.children !== "" && ( |
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.
Out of curiosity, isn't it possible for a component to return null in some cases?
if (...) {
return null;
}
if (...) {
return null;
}
return <Text> Admin </Text>;
I think you are using the && pattern in the code, but I think it can happen. Not sure if there is any specific eslint rule for that or maybe I'm missing sth here.
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.
In this case no because the type of children is children?: string: https://github.com/pyth-network/pyth-crosschain/pull/2042/files#diff-4f427b4c6e5288a1739a1654ff79451ca88da6f7cb92a0fc95a866d82c27e9b9R11
bce8513 to
6747b65
Compare
6747b65 to
35f24d4
Compare
35f24d4 to
5c69ed6
Compare
5c69ed6 to
5b3e177
Compare
No description provided.