Skip to content

Commit

Permalink
[Issue-2558] Fix UI issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lw committed Feb 6, 2024
1 parent 2d41178 commit 2cad12a
Showing 1 changed file with 45 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -408,54 +408,51 @@ const Component: React.FC = () => {
</Checkbox>
</Form.Item>

{!fastLeaveValue || !showFastLeave
? (
poolInfo.type !== YieldPoolType.LENDING
? (
<>
{!!UNSTAKE_ALERT_DATA.length && (
<div className={'__instruction-items-container'}>
{UNSTAKE_ALERT_DATA.map((_props, index) => {
return (
<InstructionItem
className={'__instruction-item'}
description={(
<div dangerouslySetInnerHTML={{ __html: (_props.description)?.replace('{unBondedTime}', unBondedTime) }}></div>
)}
iconInstruction={
<BackgroundIcon
backgroundColor={getAlphaColor(_props.iconColor, 0.1)}
iconColor={_props.iconColor}
phosphorIcon={getBannerButtonIcon(_props.icon)}
size='lg'
weight='fill'
/>
}
key={`${_props.icon}-${index}`}
title={_props.title}
/>
);
})}
</div>
)}
</>
)
: (
<AlertBox
description={t('You can withdraw your supplied funds immediately')}
title={t('Withdraw')}
type={'info'}
/>
)
)
: (
<AlertBox
description={t('With fast unstake, you will receive your funds immediately with a higher fee')}
title={t('Fast unstake')}
type={'info'}
/>
)}

<div className={'__instruction-items-container'}>
{!fastLeaveValue || !showFastLeave
? (
poolInfo.type !== YieldPoolType.LENDING
? (
<>
{!!UNSTAKE_ALERT_DATA.length && UNSTAKE_ALERT_DATA.map((_props, index) => {
return (
<InstructionItem
className={'__instruction-item'}
description={(
<div dangerouslySetInnerHTML={{ __html: (_props.description)?.replace('{unBondedTime}', unBondedTime) }}></div>
)}
iconInstruction={
<BackgroundIcon
backgroundColor={getAlphaColor(_props.iconColor, 0.1)}
iconColor={_props.iconColor}
phosphorIcon={getBannerButtonIcon(_props.icon)}
size='lg'
weight='fill'
/>
}
key={`${_props.icon}-${index}`}
title={_props.title}
/>
);
})}
</>
)
: (
<AlertBox
description={t('You can withdraw your supplied funds immediately')}
title={t('Withdraw')}
type={'info'}
/>
)
)
: (
<AlertBox
description={t('With fast unstake, you will receive your funds immediately with a higher fee')}
title={t('Fast unstake')}
type={'info'}
/>
)}
</div>
</Form>
</TransactionContent>
<TransactionFooter>
Expand Down

0 comments on commit 2cad12a

Please sign in to comment.