Skip to content

Commit

Permalink
v7.4.5
Browse files Browse the repository at this point in the history
Merge pull request #2618 from Kwenta/dev
  • Loading branch information
LeifuChen authored Jul 17, 2023
2 parents a99ebfa + 91f2bf1 commit 29c8165
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/app/src/constants/announcement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ export const BANNER_ENABLED = true
// Sets the link destination for the banner component, or renders the banner as
// plain, un-clickable text if set to a falsey value (`false`, `null`, '', etc...)
export const BANNER_LINK_URL =
'https://mirror.xyz/kwenta.eth/jCT9MCu_NpylWOQHUuzz25sbMFvR9W8RI_y_5mYYOhY'
'https://mirror.xyz/kwenta.eth/xFomD0VE0H7o2sQ9zGeLyYPwCmtp8tLMXNTGtWy2UOQ'
// Sets the text displayed on the home page banner
export const BANNER_TEXT = 'StakingV2 - Migration Postponed'
export const BANNER_TEXT = 'Staking V2 - Reverse Migration'
// Sets the height of the banner component on desktop
export const BANNER_HEIGHT_DESKTOP = 50
// Sets the height of the banner component on mobile
Expand Down
10 changes: 6 additions & 4 deletions packages/app/src/sections/dashboard/Stake/MigrationSteps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const MigrationSteps: FC = memo(() => {
onClick: handleUnstakeKwenta,
active: stakedKwentaBalanceV2.gt(0),
loading: isUnstakingKwenta,
visible: true,
},
{
key: 'step-2',
Expand All @@ -60,6 +61,7 @@ const MigrationSteps: FC = memo(() => {
onClick: handleVest,
active: stakedKwentaBalanceV2.eq(0) && totalVestableV2.gt(0),
loading: isVestingEscrowedRewards,
visible: totalVestableV2.gt(0),
},
],
[
Expand All @@ -75,8 +77,9 @@ const MigrationSteps: FC = memo(() => {

return (
<StepsContainer columnGap="15px">
{migrationSteps.map(
({ key, copy, label, value, buttonLabel, active, onClick, loading }, i) => (
{migrationSteps
.filter(({ visible }) => visible)
.map(({ key, copy, label, value, buttonLabel, active, onClick, loading }, i) => (
<StyledStakingCard key={key} $active={active}>
<StyledHeading variant="h4">
<Trans
Expand Down Expand Up @@ -111,8 +114,7 @@ const MigrationSteps: FC = memo(() => {
</Button>
</FlexDivRowCentered>
</StyledStakingCard>
)
)}
))}
</StepsContainer>
)
})
Expand Down

1 comment on commit 29c8165

@vercel
Copy link

@vercel vercel bot commented on 29c8165 Jul 17, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

kwenta – ./packages/app

kwenta-kwenta.vercel.app
kwenta-git-main-kwenta.vercel.app
kwenta.io

Please sign in to comment.