Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion components/ProfileDropdownMenu/ProfileDropdownMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ import { useUserInfoQuery } from '../../graphql/index'
import { useRouter } from 'next/router'
import _ from 'lodash'
import styles from './profileDropDown.module.scss'
import { ADMIN_PATH, PROFILE_PATH } from '../../constants'
import {
ADMIN_PATH,
PROFILE_PATH,
SETTINGS_ACCOUNT_PATH
} from '../../constants'

type ProfileDropDownMenuProps = {
username: string
Expand Down Expand Up @@ -94,6 +98,13 @@ const ProfileDropdownMenu: React.FC<ProfileDropDownMenuProps> = ({
>
Profile
</Dropdown.Item>
<Dropdown.Item
className={`${styles['dropdown-item']} `}
bsPrefix={isActive(userProfilePath)}
href={SETTINGS_ACCOUNT_PATH}
>
Settings
</Dropdown.Item>
<LogoutContainer>
<Dropdown.Item className={`${styles['dropdown-item']}`}>
Logout
Expand Down
1 change: 1 addition & 0 deletions constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const DISCORD_PATH = 'https://discord.gg/c0d3'
export const LOGIN_PATH = '/login'
export const SIGNUP_PATH = '/signup'
export const EXERCISES_PATH = '/exercises'
export const SETTINGS_ACCOUNT_PATH = '/settings/account'

// Color
export const PRIMARY_COLOR_HEX = 0x5440d8
Expand Down