mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 12:24:18 +00:00
♻️ enhan: add noti link in header
:%s
This commit is contained in:
parent
a99b4d5e21
commit
454e22344c
@ -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',
|
||||||
|
@ -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,
|
||||||
|
@ -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 = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user