From 7e2da69a63229c822ee4a4d51258338eac2b7c9e Mon Sep 17 00:00:00 2001 From: Matthew Russell Date: Tue, 14 Nov 2023 10:03:46 -0800 Subject: [PATCH] fix: formatting --- apps/trading/client-pages/rewards/rewards.tsx | 2 +- apps/trading/components/card/card.tsx | 16 ++++----- .../fees-container/fees-container.tsx | 20 +++++------ apps/trading/components/navbar/navbar.tsx | 36 +++++++++---------- 4 files changed, 37 insertions(+), 37 deletions(-) diff --git a/apps/trading/client-pages/rewards/rewards.tsx b/apps/trading/client-pages/rewards/rewards.tsx index 57e08063e..ffcc5ac00 100644 --- a/apps/trading/client-pages/rewards/rewards.tsx +++ b/apps/trading/client-pages/rewards/rewards.tsx @@ -3,7 +3,7 @@ import { RewardsContainer } from '../../components/rewards-container'; export const Rewards = () => { return ( -
+

{t('Rewards')}

diff --git a/apps/trading/components/card/card.tsx b/apps/trading/components/card/card.tsx index 6e57daf56..ca508c0b3 100644 --- a/apps/trading/components/card/card.tsx +++ b/apps/trading/components/card/card.tsx @@ -18,7 +18,7 @@ export const Card = ({ return (
-
+

{title}

{loading ? : children}
@@ -37,8 +37,8 @@ export const Card = ({ export const CardLoader = () => { return (
-
-
+
+
); }; @@ -59,7 +59,7 @@ export const CardStat = ({ const val = ( {description ? {val} : val} {text && ( - {text} + {text} )}

); @@ -80,7 +80,7 @@ export const CardStat = ({ export const CardTable = (props: HTMLProps) => { return ( - +
{props.children}
); @@ -90,7 +90,7 @@ export const CardTableTH = (props: HTMLProps) => { return ( ); }; diff --git a/apps/trading/components/fees-container/fees-container.tsx b/apps/trading/components/fees-container/fees-container.tsx index 127a08755..4c4d6b7d1 100644 --- a/apps/trading/components/fees-container/fees-container.tsx +++ b/apps/trading/components/fees-container/fees-container.tsx @@ -123,7 +123,7 @@ export const FeesContainer = () => { windowLength={volumeDiscountWindowLength} /> ) : ( -

+

{t('No volume discount program active')}

)} @@ -142,7 +142,7 @@ export const FeesContainer = () => { epochs={referralDiscountWindowLength} /> ) : ( -

+

{t('No referral program active')}

)} @@ -311,7 +311,7 @@ export const CurrentVolume = ({ : 0; return ( -
+
{ return ( -
+
{ if (!tiers.length) { return ( -

+

{t('No volume discount program active')}

); @@ -494,7 +494,7 @@ const ReferralTiers = ({ }) => { if (!tiers.length) { return ( -

{t('No referral program active')}

+

{t('No referral program active')}

); } @@ -550,20 +550,20 @@ const ReferralTiers = ({ const YourTier = () => { return ( - + {t('Your tier')} ); }; const ReferrerInfo = ({ code }: { code?: string }) => ( -
+

{t('Connected key is owner of the referral set')} {code && ( <> {' '} - + {truncateMiddle(code)} @@ -574,7 +574,7 @@ const ReferrerInfo = ({ code }: { code?: string }) => (

{t('See')}{' '} {t('Referrals')} diff --git a/apps/trading/components/navbar/navbar.tsx b/apps/trading/components/navbar/navbar.tsx index cb58ec5f5..232254c44 100644 --- a/apps/trading/components/navbar/navbar.tsx +++ b/apps/trading/components/navbar/navbar.tsx @@ -73,7 +73,7 @@ export const Navbar = ({

{/* Right section */} -
+
{ @@ -107,18 +107,18 @@ export const Navbar = ({ onOpenChange={(open) => setMenu((x) => (open ? x : null))} > -
+
setMenu(null)}> {t('Close menu')} @@ -142,7 +142,7 @@ const NavbarMenu = ({ onClick }: { onClick: () => void }) => { const marketId = useGlobalStore((store) => store.marketId); return ( -
+
@@ -246,8 +246,8 @@ const NavbarTrigger = ({ onPointerMove={preventHover} onPointerLeave={preventHover} className={classNames( - 'w-full lg:w-auto lg:h-full', - 'flex items-center justify-between lg:justify-center gap-2 px-6 py-2 lg:p-0', + 'w-full lg:h-full lg:w-auto', + 'flex items-center justify-between gap-2 px-6 py-2 lg:justify-center lg:p-0', 'text-lg lg:text-sm', 'hover:text-vega-clight-100 dark:hover:text-vega-cdark-100' )} @@ -278,8 +278,8 @@ const NavbarLink = ({ to={to} end={end} className={classNames( - 'block lg:flex lg:h-full flex-col justify-center', - 'px-6 py-2 lg:p-0 text-lg lg:text-sm', + 'block flex-col justify-center lg:flex lg:h-full', + 'px-6 py-2 text-lg lg:p-0 lg:text-sm', 'hover:text-vega-clight-100 dark:hover:text-vega-cdark-100' )} onClick={onClick} @@ -302,7 +302,7 @@ const NavbarLink = ({