Skip to content

Commit e2dc1c2

Browse files
authored
Merge pull request #616 from curvefi/feat/peg-keepers
feat: add peg keepers to crvUSD menu
2 parents 7402e6d + a33d0b3 commit e2dc1c2

File tree

6 files changed

+9
-4
lines changed

6 files changed

+9
-4
lines changed

apps/main/src/loan/constants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export const ROUTE = {
1010
PAGE_CREATE: '/create',
1111
PAGE_MANAGE: '/manage',
1212
PAGE_404: '/404',
13-
PAGE_PEGKEEPERS: '/pegkeepers',
1413
}
1514

1615
export const REFRESH_INTERVAL = {

packages/curve-ui-kit/src/shared/routes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const CRVUSD_ROUTES = {
1919
BETA_PAGE_MARKETS: '/beta-markets',
2020
PAGE_CRVUSD_STAKING: '/scrvUSD',
2121
PAGE_DISCLAIMER: '/disclaimer',
22+
PAGE_PEGKEEPERS: '/pegkeepers',
2223
}
2324

2425
export const DAO_ROUTES = {
@@ -50,6 +51,7 @@ export const APP_LINK: Record<AppName, AppRoutes> = {
5051
pages: [
5152
{ route: CRVUSD_ROUTES.PAGE_MARKETS, label: () => t`Markets` },
5253
...(isBeta ? [{ route: CRVUSD_ROUTES.BETA_PAGE_MARKETS, label: () => t`Llama (beta)` }] : []),
54+
{ route: CRVUSD_ROUTES.PAGE_PEGKEEPERS, label: () => t`Peg Keepers` },
5355
{ route: CRVUSD_ROUTES.PAGE_CRVUSD_STAKING, label: () => t`Savings crvUSD` },
5456
],
5557
},

packages/curve-ui-kit/src/shared/ui/TabsSwitcher.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@ export const TabsSwitcher = <T extends string | number>({
4343
className={`${TABS_VARIANT_CLASSES[variant]} ${TABS_HEIGHT_CLASSES[size]}`}
4444
{...props}
4545
>
46-
{options.map(({ value, label, ...props }) => (
46+
{options.map(({ value, label, sx, ...props }) => (
4747
<Tab
4848
key={value}
4949
value={value}
5050
label={<Typography variant={textVariant ?? defaultTextVariants[size]}>{label}</Typography>}
51+
sx={{ ...sx, whiteSpace: 'nowrap' }}
5152
{...props}
5253
/>
5354
))}

packages/curve-ui-kit/src/widgets/Header/DesktopHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const DesktopHeader = <TChainId extends number>({
8585
<Container>
8686
<PageTabs pages={pages} currentApp={currentApp} selectedApp={selectedApp} networkName={networkName} />
8787
<Box flexGrow={1} />
88-
<Box display="flex" gap={3} alignItems="center">
88+
<Box display="flex" gap={3} alignItems="center" sx={{ textOverflow: 'ellipsis', overflow: 'hidden' }}>
8989
<HeaderStats appStats={appStats} />
9090
</Box>
9191
</Container>

packages/curve-ui-kit/src/widgets/Header/HeaderStats.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ export type HeaderStatsProps = {
99
export const HeaderStats: FunctionComponent<HeaderStatsProps> = ({ appStats }) =>
1010
appStats?.map(({ label, value }) => (
1111
<Box key={label} display="inline-flex" alignItems="baseline">
12-
<Typography variant="bodyMRegular" color="grey.600">
12+
{/* add ellipsis*/}
13+
<Typography variant="bodyMRegular" color="grey.600" sx={{ whiteSpace: 'nowrap' }}>
1314
{label}:
1415
</Typography>
1516
&nbsp;

packages/curve-ui-kit/src/widgets/Header/PageTabs.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,7 @@ export const PageTabs: FunctionComponent<PageTabsProps> = ({ pages, currentApp,
3131
[currentApp, networkName, pages, selectedApp],
3232
)}
3333
variant="overlined"
34+
muiVariant="standard"
35+
sx={{ overflow: 'visible' }}
3436
/>
3537
)

0 commit comments

Comments
 (0)