From 208a0ec4759b288e98adb6ad61ed03f17df993c3 Mon Sep 17 00:00:00 2001 From: EleanorMao Date: Mon, 1 May 2023 21:26:45 +0800 Subject: [PATCH] feat: menu --- src/components/Menu/Menu.tsx | 4 +++- src/components/Menu/styled.ts | 9 +++++++++ src/icons/caretRight.svg | 3 +++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/icons/caretRight.svg diff --git a/src/components/Menu/Menu.tsx b/src/components/Menu/Menu.tsx index bcb1542..a3587a0 100644 --- a/src/components/Menu/Menu.tsx +++ b/src/components/Menu/Menu.tsx @@ -4,13 +4,14 @@ import { StyledActivateButton, StyledBackground, StyledCloseIcon, StyledCopyright, StyledExtraContent, StyledIcon, StyledMenuContainer, - StyledMenuItem, + StyledMenuItem, StyledNextIcon, StyledPlainMenuContainer, StyledPlainMenuItem } from './styled' import { Paths } from 'routes/Paths' import { menuConfig } from 'routes/menuConfig' import { Text } from '../Typography' import { ReactComponent as CloseSvg } from 'icons/close.svg' +import { ReactComponent as CaretRightSvg } from 'icons/caretRight.svg' export interface MenuProps { onClose: () => void @@ -47,6 +48,7 @@ export const Menu: FC = ({ onLogout, onClose }) => { rel={item.target === '_blank' ? "noopener noreferrer" : undefined}> {item.title} + ))} diff --git a/src/components/Menu/styled.ts b/src/components/Menu/styled.ts index f5cf844..275aeea 100644 --- a/src/components/Menu/styled.ts +++ b/src/components/Menu/styled.ts @@ -105,3 +105,12 @@ export const StyledPlainMenuItem = styled(NavLink)` color: ${props => props.theme.brandPrimary}; } ` + +export const StyledNextIcon = styled(Icon)` + width: 9px; + height: 14px; + position: absolute; + right: 24px; + top: 50%; + transform: translate3d(0, -50%, 0); +` diff --git a/src/icons/caretRight.svg b/src/icons/caretRight.svg new file mode 100644 index 0000000..4264942 --- /dev/null +++ b/src/icons/caretRight.svg @@ -0,0 +1,3 @@ + + +