♻️ enhan: add noti link in header

:%s
This commit is contained in:
lytrankieio123 2021-09-14 14:57:31 +07:00
parent a99b4d5e21
commit 454e22344c
3 changed files with 6 additions and 2 deletions

View File

@ -29,6 +29,10 @@ const HeaderMenu = memo(({ openModalAuthen, openModalInfo, toggleFilter, toggleC
onClick: openModalInfo, onClick: openModalInfo,
name: 'Create User Info (Demo)', name: 'Create User Info (Demo)',
}, },
{
link: ROUTE.NOTIFICATION,
name: 'Notifications',
},
{ {
link: ROUTE.ACCOUNT, link: ROUTE.ACCOUNT,
name: 'Account', name: 'Account',

View File

@ -25,7 +25,7 @@ const OPTION_MENU = [
isMarked: false, isMarked: false,
}, },
{ {
link: `${ROUTE.ACCOUNT}?${QUERY_KEY.TAB}=${ACCOUNT_TAB.NOTIFICATION}`, link: ROUTE.NOTIFICATION,
name: 'Notifications', name: 'Notifications',
icon: <IconNoti />, icon: <IconNoti />,
isMarked: true, isMarked: true,

View File

@ -21,6 +21,7 @@ export const ROUTE = {
RECIPES: '/recipes', RECIPES: '/recipes',
RECIPE_DETAIL: '/recipe', RECIPE_DETAIL: '/recipe',
NOTIFICATION: '/notification',
BUSSINESS: '/bussiness', BUSSINESS: '/bussiness',
CONTACT: '/contact', CONTACT: '/contact',
CHECKOUT: '/checkout', CHECKOUT: '/checkout',
@ -35,7 +36,6 @@ export const ACCOUNT_TAB = {
CUSTOMER_INFO: '', CUSTOMER_INFO: '',
ORDER: 'orders', ORDER: 'orders',
FAVOURITE: 'wishlist', FAVOURITE: 'wishlist',
NOTIFICATION: 'notification',
} }
export const QUERY_KEY = { export const QUERY_KEY = {