fix: correct spelling of 'Staff' to 'Staf' and 'Tags' to 'Tag' in various components
This commit is contained in:
parent
de1802c597
commit
39b7720186
@ -70,7 +70,7 @@ export const MENU: TMenu[] = [
|
|||||||
icon: DocumentCurrencyDollarIcon,
|
icon: DocumentCurrencyDollarIcon,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Staff',
|
title: 'Staf',
|
||||||
url: '/lg-admin/staffs',
|
url: '/lg-admin/staffs',
|
||||||
icon: BriefcaseIcon,
|
icon: BriefcaseIcon,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -65,7 +65,7 @@ export const StaffsPage = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="relative">
|
<div className="relative">
|
||||||
<TitleDashboard title="Staffs" />
|
<TitleDashboard title="Staf" />
|
||||||
<div className="mb-8 flex items-end justify-between gap-5">
|
<div className="mb-8 flex items-end justify-between gap-5">
|
||||||
<div className="flex-1">{/* TODO: Filter */}</div>
|
<div className="flex-1">{/* TODO: Filter */}</div>
|
||||||
<Button
|
<Button
|
||||||
@ -74,7 +74,7 @@ export const StaffsPage = () => {
|
|||||||
size="lg"
|
size="lg"
|
||||||
className="text-md h-[42px] px-4"
|
className="text-md h-[42px] px-4"
|
||||||
>
|
>
|
||||||
<PlusIcon className="size-8" /> Buat Staff
|
<PlusIcon className="size-8" /> Buat Staf
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -88,7 +88,7 @@ export const TagsPage = () => {
|
|||||||
})
|
})
|
||||||
return (
|
return (
|
||||||
<div className="relative">
|
<div className="relative">
|
||||||
<TitleDashboard title="Tags" />
|
<TitleDashboard title="Tag" />
|
||||||
<div className="mb-8 flex items-end justify-between gap-5">
|
<div className="mb-8 flex items-end justify-between gap-5">
|
||||||
<div className="flex-1">
|
<div className="flex-1">
|
||||||
<TableSearchFilter
|
<TableSearchFilter
|
||||||
@ -111,7 +111,7 @@ export const TagsPage = () => {
|
|||||||
columns={dataColumns}
|
columns={dataColumns}
|
||||||
options={dataOptions}
|
options={dataOptions}
|
||||||
slots={dataSlot}
|
slots={dataSlot}
|
||||||
title="Daftar Tags"
|
title="Daftar Tag"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<DialogDelete
|
<DialogDelete
|
||||||
|
|||||||
@ -70,7 +70,7 @@ export const UsersPage = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="relative">
|
<div className="relative">
|
||||||
<TitleDashboard title="Users" />
|
<TitleDashboard title="User" />
|
||||||
|
|
||||||
<div className="mb-8 flex items-end justify-between gap-5">
|
<div className="mb-8 flex items-end justify-between gap-5">
|
||||||
<div className="flex-1">{/* TODO: Filter */}</div>
|
<div className="flex-1">{/* TODO: Filter */}</div>
|
||||||
@ -80,7 +80,7 @@ export const UsersPage = () => {
|
|||||||
data={dataTable || []}
|
data={dataTable || []}
|
||||||
columns={dataColumns}
|
columns={dataColumns}
|
||||||
slots={dataSlot}
|
slots={dataSlot}
|
||||||
title="Daftar Users"
|
title="Daftar User"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
@ -15,11 +15,11 @@ export const staffSchema = z
|
|||||||
profile_picture: z
|
profile_picture: z
|
||||||
.string()
|
.string()
|
||||||
.url({
|
.url({
|
||||||
message: 'Profile picture must be a valid URL',
|
message: 'Gambar profil must be a valid URL',
|
||||||
})
|
})
|
||||||
.or(z.literal('')),
|
.or(z.literal('')),
|
||||||
name: z.string().min(1, {
|
name: z.string().min(1, {
|
||||||
message: 'Nama staff is required',
|
message: 'Nama staf is required',
|
||||||
}),
|
}),
|
||||||
password: z.string().min(6, 'Kata sandi minimal 6 karakter'),
|
password: z.string().min(6, 'Kata sandi minimal 6 karakter'),
|
||||||
rePassword: z.string().min(6, 'Kata sandi minimal 6 karakter'),
|
rePassword: z.string().min(6, 'Kata sandi minimal 6 karakter'),
|
||||||
@ -56,7 +56,7 @@ export const FormStaffPage = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="relative">
|
<div className="relative">
|
||||||
<TitleDashboard title={`Buat Staff`} />
|
<TitleDashboard title={`Buat Staf`} />
|
||||||
<div>
|
<div>
|
||||||
<RemixFormProvider {...formMethods}>
|
<RemixFormProvider {...formMethods}>
|
||||||
<fetcher.Form
|
<fetcher.Form
|
||||||
@ -68,8 +68,8 @@ export const FormStaffPage = () => {
|
|||||||
<div className="flex items-end justify-between gap-4">
|
<div className="flex items-end justify-between gap-4">
|
||||||
<Input
|
<Input
|
||||||
id="name"
|
id="name"
|
||||||
label="Nama Staff"
|
label="Nama Staf"
|
||||||
placeholder="Masukkan Url Link"
|
placeholder="Masukkan nama staf"
|
||||||
name="name"
|
name="name"
|
||||||
className="border-0 bg-white shadow read-only:bg-gray-100 focus:ring-1 focus:ring-[#2E2F7C] focus:outline-none disabled:bg-gray-100"
|
className="border-0 bg-white shadow read-only:bg-gray-100 focus:ring-1 focus:ring-[#2E2F7C] focus:outline-none disabled:bg-gray-100"
|
||||||
labelClassName="text-sm font-medium text-[#363636]"
|
labelClassName="text-sm font-medium text-[#363636]"
|
||||||
@ -117,8 +117,8 @@ export const FormStaffPage = () => {
|
|||||||
/>
|
/>
|
||||||
<InputFile
|
<InputFile
|
||||||
id="profile_picture"
|
id="profile_picture"
|
||||||
label="Profile Picture"
|
label="Gambar Profil"
|
||||||
placeholder="Upload your profile picture"
|
placeholder="Unggah gambar profil Anda"
|
||||||
name="profile_picture"
|
name="profile_picture"
|
||||||
className="border-0 bg-white shadow read-only:bg-gray-100 focus:ring-1 focus:ring-[#2E2F7C] focus:outline-none disabled:bg-gray-100"
|
className="border-0 bg-white shadow read-only:bg-gray-100 focus:ring-1 focus:ring-[#2E2F7C] focus:outline-none disabled:bg-gray-100"
|
||||||
labelClassName="text-sm font-medium text-[#363636]"
|
labelClassName="text-sm font-medium text-[#363636]"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user