Skip to content
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

Temporarily show forced action buttons only on spot #331

Merged
merged 3 commits into from Mar 2, 2023

Conversation

adamiak
Copy link
Member

@adamiak adamiak commented Mar 2, 2023

This is due to perpetual buttons not being properly linked.

This is due to perpetual buttons not being properly linked.
@@ -87,7 +87,7 @@ function UserPage(props: UserPageProps) {
type={props.type}
starkKey={props.starkKey}
assets={props.assets}
isMine={props.user !== undefined}
isMine={isMine && props.type === 'SPOT'}
Copy link
Contributor

Choose a reason for hiding this comment

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

I would suggest to use props.type conditional rendering inside the component not here

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@adamiak adamiak merged commit 2c8fa86 into master Mar 2, 2023
@adamiak adamiak deleted the show-withdraw-only-spot branch March 2, 2023 14:55
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.

None yet

2 participants