+
{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 (
-
+
);
@@ -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 = ({
@@ -323,7 +323,7 @@ const NavbarSubItem = (props: LiHTMLAttributes) => {
};
const NavbarList = (props: N.NavigationMenuListProps) => {
- return ;
+ return ;
};
/**
@@ -334,10 +334,10 @@ const NavbarContent = (props: N.NavigationMenuContentProps) => {
(
const NavbarListDivider = () => {
return (
);
};
@@ -404,7 +404,7 @@ const NavbarMobileButton = (props: ButtonHTMLAttributes) => {