Skip to content

Commit 7157ad3

Browse files
committed
chore: navigate to smart exit list
1 parent de0f8c3 commit 7157ad3

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 8 additions & 0 deletions
Loading

apps/kyberswap-interface/src/components/Header/groups/EarnNavGroup.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { ReactComponent as OverviewIcon } from 'assets/svg/earn/ic_earn_overview
77
import { ReactComponent as PoolsIcon } from 'assets/svg/earn/ic_earn_pools.svg'
88
import { ReactComponent as PositionsIcon } from 'assets/svg/earn/ic_earn_positions.svg'
99
import { ReactComponent as FarmingIcon } from 'assets/svg/earn/ic_farming.svg'
10+
import { ReactComponent as ListIcon } from 'assets/svg/ic_exit.svg'
1011
import { ReactComponent as KemIcon } from 'assets/svg/kyber/kem.svg'
1112
import NavGroup from 'components/Header/groups/NavGroup'
1213
import { DropdownTextAnchor, StyledNavLink } from 'components/Header/styleds'
@@ -25,6 +26,7 @@ const EarnNavGroup = () => {
2526
APP_PATHS.EARN_POOLS,
2627
APP_PATHS.EARN_POSITIONS,
2728
APP_PATHS.EARN_POSITION_DETAIL,
29+
APP_PATHS.EARN_SMART_EXIT,
2830
].some(path => pathname.includes(path))
2931

3032
return (
@@ -102,6 +104,12 @@ const EarnNavGroup = () => {
102104
{t`My Positions`}
103105
</Flex>
104106
</StyledNavLink>
107+
<StyledNavLink data-testid="earn-positions-nav-link" to={{ pathname: `${APP_PATHS.EARN_SMART_EXIT}` }}>
108+
<Flex sx={{ gap: '12px' }} alignItems="center">
109+
<ListIcon width={16} height={16} />
110+
{t`Smart Exit Orders`}
111+
</Flex>
112+
</StyledNavLink>
105113
</Flex>
106114
}
107115
/>

0 commit comments

Comments
 (0)