Skip to content

Commit d0cb2c5

Browse files
committed
refactor: don't hardcode analytics in header logo
1 parent cd5e5fe commit d0cb2c5

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ export const HeaderLogo = ({ currentMenu, isLite, sx }: HeaderLogoProps) => (
3737
>
3838
{APP_NAMES[currentMenu]}
3939
</Typography>
40-
{currentMenu === 'dex'
41-
? isLite && (
42-
<Typography variant="bodyXsBold" color="textTertiary">
43-
Lite
44-
</Typography>
45-
)
46-
: currentMenu !== 'analytics' && (
47-
<Typography variant="bodyXsRegular" color="textTertiary">
48-
powered by Curve
49-
</Typography>
50-
)}
40+
{currentMenu === 'dex' && isLite ? (
41+
<Typography variant="bodyXsRegular" color="textTertiary">
42+
Lite
43+
</Typography>
44+
) : (
45+
APP_NAMES[currentMenu] !== 'Curve' && (
46+
<Typography variant="bodyXsRegular" color="textTertiary">
47+
powered by Curve
48+
</Typography>
49+
)
50+
)}
5151
</Box>
5252
</RouterLink>
5353
)

0 commit comments

Comments
 (0)