Skip to content

Commit e1b4f2c

Browse files
authored
Merge pull request #64 from lidofinance/feature/si-1913-add-feedback-link
feat: feedback link
2 parents ccff0c3 + f544f3d commit e1b4f2c

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

consts/external-links.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
// while the repo is not public, this will force to use build time config
22
export const IPFS_MANIFEST_URL = '';
3+
4+
export const FEEDBACK_SURVEY_URL = 'https://tally.so/r/3X9vYe';

shared/components/layout/navigation/navigation.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { FC, memo, useMemo, ReactNode } from 'react';
22
import { Address } from 'viem';
3-
import { Stake, Withdraw, Wrap, Text } from '@lidofinance/lido-ui';
3+
import { Stake, Withdraw, Wrap, Text, External } from '@lidofinance/lido-ui';
44

55
import { ReactComponent as GearIcon } from 'assets/icons/gear.svg';
66
import { ReactComponent as MosaicIcon } from 'assets/icons/mosaic.svg';
@@ -19,8 +19,10 @@ import {
1919
AllVaults,
2020
ArrowBackStyled,
2121
NavList,
22+
FeedbackLink,
2223
} from './styles';
2324
import { useRouter } from 'next/router';
25+
import { FEEDBACK_SURVEY_URL } from 'consts/external-links';
2426

2527
type PageRoute = {
2628
name: string;
@@ -185,6 +187,9 @@ export const Navigation: FC = memo(() => {
185187
</NavList>
186188
</>
187189
)}
190+
<FeedbackLink target="_blank" href={FEEDBACK_SURVEY_URL}>
191+
Leave feedback <External />
192+
</FeedbackLink>
188193
</Nav>
189194
);
190195
});

shared/components/layout/navigation/styles.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,11 @@ export const ArrowBackStyled = styled(ArrowBack)`
101101
height: 14px;
102102
margin-right: ${({ theme }) => theme.spaceMap.sm}px;
103103
`;
104+
105+
export const FeedbackLink = styled.a`
106+
display: flex;
107+
align-items: center;
108+
margin-top: ${({ theme }) => theme.spaceMap.xxl}px;
109+
padding-top: ${({ theme }) => theme.spaceMap.xxl}px;
110+
border-top: 1px solid var(--lido-color-border);
111+
`;

0 commit comments

Comments
 (0)