From 640ea4ed339f97478a625d2fd88ae8081260cd07 Mon Sep 17 00:00:00 2001 From: Ignacio Date: Fri, 22 Mar 2024 10:46:11 +0800 Subject: [PATCH] feat: start with the responsive banner --- .../staking/components/staking-overview.tsx | 32 +++++++++++-------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/src/features/staking/components/staking-overview.tsx b/src/features/staking/components/staking-overview.tsx index 235d9e9..98ad423 100644 --- a/src/features/staking/components/staking-overview.tsx +++ b/src/features/staking/components/staking-overview.tsx @@ -27,10 +27,21 @@ import { formatToSmallDisplay, formatXionToUSD, } from "../lib/formatters"; -import { DivisorVertical } from "./divisor"; +import { DivisorHorizontal, DivisorVertical } from "./divisor"; -const divisorStyle = "absolute bottom-[24px] right-[-8px] top-[24px]"; -const columnStyle = "relative flex h-full flex-col items-start gap-3 p-[24px]"; +const columnStyle = + "relative flex w-full h-full flex-col items-start gap-3 p-[24px]"; + +const Divisor = () => ( + <> +
+ +
+
+ +
+ +); const StakingOverview = () => { const { isConnected } = useAbstraxionAccount(); @@ -75,9 +86,10 @@ const StakingOverview = () => { return (
{ )}
{formatXionToUSD(totalRewards)} -
- -
+
APR {formatAPR(apr)} -
- -
+
Delegated Amount (XION) @@ -129,9 +137,7 @@ const StakingOverview = () => { )} {formatXionToUSD(totalDelegation)} -
- -
+
Available For Delegation (XION)