add staking page
This commit is contained in:
@@ -48,9 +48,15 @@ export function PositionsPanel({ chain, onUnstakeEth, onUnstakeSol, onClaim, uns
|
||||
</div>
|
||||
|
||||
<div className={styles.body}>
|
||||
{!isLoading && !isError && data?.chain === 'ETH' && !empty && (parseFloat(data.stEthBalanceWeiHuman) || 0) > 0.00000000000001 ? (
|
||||
{!isLoading && !isError && data?.chain === 'ETH' && !empty && (parseFloat(data.stEthBalanceWeiHuman) || 0) > 0.00000000000001 && (
|
||||
<WithdrawNotice compact />
|
||||
) : (
|
||||
)}
|
||||
|
||||
{isLoading && <Spinner label="Загрузка позиций" />}
|
||||
|
||||
{isError && <div className={styles.empty}>{getStakingErrorMessage(error)}</div>}
|
||||
|
||||
{!isLoading && !isError && empty && (
|
||||
<div className={styles.emptyState}>
|
||||
<span className={styles.emptyIcon} aria-hidden>
|
||||
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round" strokeLinejoin="round">
|
||||
@@ -64,14 +70,6 @@ export function PositionsPanel({ chain, onUnstakeEth, onUnstakeSol, onClaim, uns
|
||||
</div>
|
||||
)}
|
||||
|
||||
{isLoading && <Spinner label="Загрузка позиций" />}
|
||||
|
||||
{isError && <div className={styles.empty}>{getStakingErrorMessage(error)}</div>}
|
||||
|
||||
{!isLoading && !isError && empty && (
|
||||
<div className={styles.empty}>У вас пока нет активных позиций стейкинга.</div>
|
||||
)}
|
||||
|
||||
{!isError && data?.chain === 'ETH' && !empty && (
|
||||
<>
|
||||
{(parseFloat(data.stEthBalanceWeiHuman) || 0) > 0.00000000000001 && (
|
||||
|
||||
Reference in New Issue
Block a user