update warehouse

This commit is contained in:
Duy Dang 2024-06-15 01:19:24 +08:00
parent 3862aa4e22
commit 5a727a9722
3 changed files with 7 additions and 39 deletions

View File

@ -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,
}, },
] ]

View File

@ -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",

View File

@ -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}