account sidebar urls
This commit is contained in:
@@ -5,8 +5,10 @@ import { useRouter } from 'next/navigation'
|
||||
import AccountSidebar from '@/components/AccountSidebar'
|
||||
import Loader from '@/components/ui/Loader'
|
||||
import { RiUser3Line } from 'react-icons/ri'
|
||||
import { FaRoute } from 'react-icons/fa'
|
||||
import { GoPackageDependents, GoPackageDependencies } from 'react-icons/go'
|
||||
import { MdOutlinePayments } from 'react-icons/md'
|
||||
import { CgNotes } from 'react-icons/cg'
|
||||
import { FaStar } from 'react-icons/fa6'
|
||||
import useUserStore from '@/app/store/userStore'
|
||||
|
||||
export default function AccountLayout({
|
||||
@@ -37,7 +39,18 @@ export default function AccountLayout({
|
||||
|
||||
const userNavigation = [
|
||||
{ name: 'Профиль', href: '/account', icon: RiUser3Line },
|
||||
{ name: 'Мои маршруты', href: '/account/routes', icon: CgNotes },
|
||||
{ name: 'Мои маршруты', href: '/account/routes', icon: FaRoute },
|
||||
{
|
||||
name: 'Отправить посылку',
|
||||
href: '/account/create_as_sender',
|
||||
icon: GoPackageDependents,
|
||||
},
|
||||
{
|
||||
name: 'Перевезти посылку',
|
||||
href: '/account/create_as_deliveler',
|
||||
icon: GoPackageDependencies,
|
||||
},
|
||||
{ name: 'Тарифы', href: '/account/payments', icon: MdOutlinePayments },
|
||||
]
|
||||
|
||||
return (
|
||||
|
||||
@@ -21,6 +21,8 @@ export interface ButtonProps {
|
||||
onClick?: () => void
|
||||
className?: string
|
||||
text?: string
|
||||
leftIcon?: React.ReactNode
|
||||
rightIcon?: React.ReactNode
|
||||
type?: 'button' | 'submit' | 'reset'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user