From c37f6743b56f082817eef9b231bbdc480da2ec1c Mon Sep 17 00:00:00 2001 From: borcherd Date: Fri, 13 Dec 2024 10:07:57 +0100 Subject: [PATCH] chore: styling changes --- .../components/amount-input/amount-input.tsx | 15 ++++++++++++--- .../components/amount-preview/amount-preview.tsx | 2 +- .../trade-box-v2/components/header/header.tsx | 12 ++++++------ 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/apps/marginfi-v2-trading/src/components/common/trade-box-v2/components/amount-input/amount-input.tsx b/apps/marginfi-v2-trading/src/components/common/trade-box-v2/components/amount-input/amount-input.tsx index 9596d0094..55f145a58 100644 --- a/apps/marginfi-v2-trading/src/components/common/trade-box-v2/components/amount-input/amount-input.tsx +++ b/apps/marginfi-v2-trading/src/components/common/trade-box-v2/components/amount-input/amount-input.tsx @@ -1,5 +1,5 @@ import React from "react"; - +import Image from "next/image"; import { Input } from "~/components/ui/input"; import { MaxAction } from "./components"; import { ArenaBank } from "~/store/tradeStoreV2"; @@ -22,9 +22,18 @@ export const AmountInput = ({ const amountInputRef = React.useRef(null); return ( -
+
- + + {collateralBank?.meta.tokenLogoUri && ( + {collateralBank?.meta.tokenSymbol} + )} {collateralBank?.meta.tokenSymbol.toUpperCase()}
diff --git a/apps/marginfi-v2-trading/src/components/common/trade-box-v2/components/amount-preview/amount-preview.tsx b/apps/marginfi-v2-trading/src/components/common/trade-box-v2/components/amount-preview/amount-preview.tsx index 1d1717aea..df4f3922d 100644 --- a/apps/marginfi-v2-trading/src/components/common/trade-box-v2/components/amount-preview/amount-preview.tsx +++ b/apps/marginfi-v2-trading/src/components/common/trade-box-v2/components/amount-preview/amount-preview.tsx @@ -16,7 +16,7 @@ interface AmountPreviewProps { export const AmountPreview = ({ tradeSide, amount, isLoading, selectedBank }: AmountPreviewProps) => { return (
-
+
{isLoading ? : dynamicNumeralFormatter(amount)}{" "} {selectedBank?.meta.tokenSymbol.toUpperCase()} diff --git a/apps/marginfi-v2-trading/src/components/common/trade-box-v2/components/header/header.tsx b/apps/marginfi-v2-trading/src/components/common/trade-box-v2/components/header/header.tsx index 20518d21f..718b7011e 100644 --- a/apps/marginfi-v2-trading/src/components/common/trade-box-v2/components/header/header.tsx +++ b/apps/marginfi-v2-trading/src/components/common/trade-box-v2/components/header/header.tsx @@ -21,12 +21,12 @@ export const Header = ({ activePool }: HeaderProps) => { router.push(`/trade/${pool.groupPk.toBase58()}`); }} > -
+
{activePool.tokenBank.meta.tokenSymbol}

@@ -34,14 +34,14 @@ export const Header = ({ activePool }: HeaderProps) => {

-
+
Entry price - $122.00 + $122.00
24h volume - $1.65m + $1.65m