update warehouse
This commit is contained in:
parent
3862aa4e22
commit
5a727a9722
@ -2,7 +2,7 @@ import { useSiteContext } from '@context/SiteContext'
|
|||||||
import useAuth from '@hooks/useAuth'
|
import useAuth from '@hooks/useAuth'
|
||||||
import useLanguage from '@hooks/useLanguage'
|
import useLanguage from '@hooks/useLanguage'
|
||||||
import { A } from '@solidjs/router'
|
import { A } from '@solidjs/router'
|
||||||
import { IconDashboard, IconLogout, IconTriangle } from '@tabler/icons-solidjs'
|
import { IconDashboard, IconLocation, IconLogout, IconTriangle } from '@tabler/icons-solidjs'
|
||||||
import { For, Show, mergeProps } from 'solid-js'
|
import { For, Show, mergeProps } from 'solid-js'
|
||||||
import { Dynamic } from 'solid-js/web'
|
import { Dynamic } from 'solid-js/web'
|
||||||
import './navbar.scss'
|
import './navbar.scss'
|
||||||
@ -17,42 +17,10 @@ export const NAV_ITEM = (admin = false) => [
|
|||||||
text: language?.ui.dashboard,
|
text: language?.ui.dashboard,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
path: '/location',
|
||||||
show: true,
|
show: true,
|
||||||
icon: IconTriangle,
|
icon: IconLocation,
|
||||||
text: 'API',
|
text: language?.ui.location,
|
||||||
children: [
|
|
||||||
{
|
|
||||||
show: true,
|
|
||||||
icon: IconDashboard,
|
|
||||||
text: 'Test',
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: '/dashboard',
|
|
||||||
show: true,
|
|
||||||
icon: IconDashboard,
|
|
||||||
text: language?.ui.dashboard,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/test',
|
|
||||||
show: true,
|
|
||||||
icon: IconDashboard,
|
|
||||||
text: 'Test',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/api',
|
|
||||||
show: true,
|
|
||||||
icon: IconDashboard,
|
|
||||||
text: 'Get',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/ware-house',
|
|
||||||
show: true,
|
|
||||||
icon: IconDashboard,
|
|
||||||
text: language?.ui.houses,
|
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"logout": "Đăng xuất",
|
"logout": "Đăng xuất",
|
||||||
"dashboard": "Bảng điều khiển",
|
"dashboard": "Bảng điều khiển",
|
||||||
"profile": "Hồ sơ",
|
"profile": "Hồ sơ",
|
||||||
"changeInfo": "Đổi thông tin",
|
"changeInfo": "Thông tin tài khoản",
|
||||||
"save": "Lưu",
|
"save": "Lưu",
|
||||||
"clear": "Xóa",
|
"clear": "Xóa",
|
||||||
"houses": "Kho",
|
"houses": "Kho",
|
||||||
|
@ -3,7 +3,7 @@ import TextInput from '@components/common/TextInput'
|
|||||||
import { useSiteContext } from '@context/SiteContext'
|
import { useSiteContext } from '@context/SiteContext'
|
||||||
import useLanguage from '@hooks/useLanguage'
|
import useLanguage from '@hooks/useLanguage'
|
||||||
import useToast from '@hooks/useToast'
|
import useToast from '@hooks/useToast'
|
||||||
import { IconKey, IconLetterN, IconUserCircle } from '@tabler/icons-solidjs'
|
import { IconKey, IconUser, IconUserCircle } from '@tabler/icons-solidjs'
|
||||||
import { Helpers } from '@utils/helper'
|
import { Helpers } from '@utils/helper'
|
||||||
import { useFormHandler } from 'solid-form-handler'
|
import { useFormHandler } from 'solid-form-handler'
|
||||||
import { yupSchema } from 'solid-form-handler/yup'
|
import { yupSchema } from 'solid-form-handler/yup'
|
||||||
@ -82,7 +82,7 @@ export default function Profile() {
|
|||||||
<p class="card-title">{language.ui.changeInfo}</p>
|
<p class="card-title">{language.ui.changeInfo}</p>
|
||||||
<div class="form-content py-5">
|
<div class="form-content py-5">
|
||||||
<TextInput
|
<TextInput
|
||||||
icon={IconLetterN}
|
icon={IconUser}
|
||||||
name="name"
|
name="name"
|
||||||
placeholder={language.ui.displayName}
|
placeholder={language.ui.displayName}
|
||||||
formHandler={formHandler}
|
formHandler={formHandler}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user