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,
|
||||
},
|
||||
{
|
||||
title: 'Staff',
|
||||
title: 'Staf',
|
||||
url: '/lg-admin/staffs',
|
||||
icon: BriefcaseIcon,
|
||||
},
|
||||
|
||||
@ -65,7 +65,7 @@ export const StaffsPage = () => {
|
||||
|
||||
return (
|
||||
<div className="relative">
|
||||
<TitleDashboard title="Staffs" />
|
||||
<TitleDashboard title="Staf" />
|
||||
<div className="mb-8 flex items-end justify-between gap-5">
|
||||
<div className="flex-1">{/* TODO: Filter */}</div>
|
||||
<Button
|
||||
@ -74,7 +74,7 @@ export const StaffsPage = () => {
|
||||
size="lg"
|
||||
className="text-md h-[42px] px-4"
|
||||
>
|
||||
<PlusIcon className="size-8" /> Buat Staff
|
||||
<PlusIcon className="size-8" /> Buat Staf
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
|
||||
@ -88,7 +88,7 @@ export const TagsPage = () => {
|
||||
})
|
||||
return (
|
||||
<div className="relative">
|
||||
<TitleDashboard title="Tags" />
|
||||
<TitleDashboard title="Tag" />
|
||||
<div className="mb-8 flex items-end justify-between gap-5">
|
||||
<div className="flex-1">
|
||||
<TableSearchFilter
|
||||
@ -111,7 +111,7 @@ export const TagsPage = () => {
|
||||
columns={dataColumns}
|
||||
options={dataOptions}
|
||||
slots={dataSlot}
|
||||
title="Daftar Tags"
|
||||
title="Daftar Tag"
|
||||
/>
|
||||
|
||||
<DialogDelete
|
||||
|
||||
@ -70,7 +70,7 @@ export const UsersPage = () => {
|
||||
|
||||
return (
|
||||
<div className="relative">
|
||||
<TitleDashboard title="Users" />
|
||||
<TitleDashboard title="User" />
|
||||
|
||||
<div className="mb-8 flex items-end justify-between gap-5">
|
||||
<div className="flex-1">{/* TODO: Filter */}</div>
|
||||
@ -80,7 +80,7 @@ export const UsersPage = () => {
|
||||
data={dataTable || []}
|
||||
columns={dataColumns}
|
||||
slots={dataSlot}
|
||||
title="Daftar Users"
|
||||
title="Daftar User"
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
|
||||
@ -15,11 +15,11 @@ export const staffSchema = z
|
||||
profile_picture: z
|
||||
.string()
|
||||
.url({
|
||||
message: 'Profile picture must be a valid URL',
|
||||
message: 'Gambar profil must be a valid URL',
|
||||
})
|
||||
.or(z.literal('')),
|
||||
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'),
|
||||
rePassword: z.string().min(6, 'Kata sandi minimal 6 karakter'),
|
||||
@ -56,7 +56,7 @@ export const FormStaffPage = () => {
|
||||
|
||||
return (
|
||||
<div className="relative">
|
||||
<TitleDashboard title={`Buat Staff`} />
|
||||
<TitleDashboard title={`Buat Staf`} />
|
||||
<div>
|
||||
<RemixFormProvider {...formMethods}>
|
||||
<fetcher.Form
|
||||
@ -68,8 +68,8 @@ export const FormStaffPage = () => {
|
||||
<div className="flex items-end justify-between gap-4">
|
||||
<Input
|
||||
id="name"
|
||||
label="Nama Staff"
|
||||
placeholder="Masukkan Url Link"
|
||||
label="Nama Staf"
|
||||
placeholder="Masukkan nama staf"
|
||||
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"
|
||||
labelClassName="text-sm font-medium text-[#363636]"
|
||||
@ -117,8 +117,8 @@ export const FormStaffPage = () => {
|
||||
/>
|
||||
<InputFile
|
||||
id="profile_picture"
|
||||
label="Profile Picture"
|
||||
placeholder="Upload your profile picture"
|
||||
label="Gambar Profil"
|
||||
placeholder="Unggah gambar profil Anda"
|
||||
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"
|
||||
labelClassName="text-sm font-medium text-[#363636]"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user