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 useLanguage from '@hooks/useLanguage'
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 { Dynamic } from 'solid-js/web'
import './navbar.scss'
@ -17,42 +17,10 @@ export const NAV_ITEM = (admin = false) => [
text: language?.ui.dashboard,
},
{
path: '/location',
show: true,
icon: IconTriangle,
text: 'API',
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,
icon: IconLocation,
text: language?.ui.location,
},
]

View File

@ -6,7 +6,7 @@
"logout": "Đăng xuất",
"dashboard": "Bảng điều khiển",
"profile": "Hồ sơ",
"changeInfo": "Đổi thông tin",
"changeInfo": "Thông tin tài khoản",
"save": "Lưu",
"clear": "Xóa",
"houses": "Kho",

View File

@ -3,7 +3,7 @@ import TextInput from '@components/common/TextInput'
import { useSiteContext } from '@context/SiteContext'
import useLanguage from '@hooks/useLanguage'
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 { useFormHandler } from 'solid-form-handler'
import { yupSchema } from 'solid-form-handler/yup'
@ -82,7 +82,7 @@ export default function Profile() {
<p class="card-title">{language.ui.changeInfo}</p>
<div class="form-content py-5">
<TextInput
icon={IconLetterN}
icon={IconUser}
name="name"
placeholder={language.ui.displayName}
formHandler={formHandler}