Skip to content

Conversation

@cprussin
Copy link
Collaborator

No description provided.

@vercel
Copy link

vercel bot commented Oct 14, 2024

@cprussin is attempting to deploy a commit to the Pyth Network Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Oct 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 17, 2024 3:23pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 17, 2024 3:23pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
proposals ⬜️ Ignored (Inspect) Visit Preview Oct 17, 2024 3:23pm

Copy link
Contributor

@danimhr danimhr left a 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 !== "" && (
Copy link
Contributor

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cprussin cprussin force-pushed the initialize-component-library branch from 5c69ed6 to 5b3e177 Compare October 17, 2024 15:18
@cprussin cprussin merged commit 30a6d7f into pyth-network:main Oct 17, 2024
6 checks passed
@cprussin cprussin deleted the initialize-component-library branch October 17, 2024 15:28
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.

3 participants