Skip to content

Commit

Permalink
feat(profile-view): feature guard button for buy another odyssey
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-yudakov committed Oct 30, 2023
1 parent c789cd2 commit df2463c
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import {WalletInterface} from 'api';
import {WorldsOwnedList, WorldsStakedList} from 'ui-kit';
import {UserModelInterface, WorldInfoModelInterface} from 'core/models';
import {ROUTES} from 'core/constants';
import {isFeatureEnabled} from 'api/constants';
import {FeatureFlagEnum} from 'api/enums';

import * as styled from './ProfileView.styled';

Expand Down Expand Up @@ -65,13 +67,15 @@ const ProfileView: FC<PropsInterface> = ({
onVisitWorld={onVisitWorld}
/>

<styled.BuyAnotherWorldPanel>
<Button
variant="secondary"
label="Buy another Odyssey"
onClick={() => navigate(ROUTES.buyNft)}
/>
</styled.BuyAnotherWorldPanel>
{isFeatureEnabled(FeatureFlagEnum.BUY_NFT) && (
<styled.BuyAnotherWorldPanel>
<Button
variant="secondary"
label="Buy another Odyssey"
onClick={() => navigate(ROUTES.buyNft)}
/>
</styled.BuyAnotherWorldPanel>
)}

<WorldsStakedList
worldsStakedIn={worldsStakedList}
Expand Down

0 comments on commit df2463c

Please sign in to comment.