feat: add PlusIcon to category creation button and set readOnly for specific fields in form
This commit is contained in:
@@ -35,7 +35,7 @@ export const FormCategoryPage = (properties: TProperties) => {
|
||||
id: categoryData?.id || undefined,
|
||||
code: categoryData?.code || '',
|
||||
name: categoryData?.name || '',
|
||||
sequence: categoryData?.sequence || undefined,
|
||||
sequence: categoryData?.sequence ?? undefined,
|
||||
description: categoryData?.description || '',
|
||||
},
|
||||
})
|
||||
@@ -84,6 +84,7 @@ export const FormCategoryPage = (properties: TProperties) => {
|
||||
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]"
|
||||
containerClassName="flex-1"
|
||||
readOnly={categoryData?.code === 'spotlight'}
|
||||
/>
|
||||
<Input
|
||||
id="code"
|
||||
@@ -115,6 +116,7 @@ export const FormCategoryPage = (properties: TProperties) => {
|
||||
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]"
|
||||
containerClassName="w-44"
|
||||
readOnly={categoryData?.code === 'spotlight'}
|
||||
/>
|
||||
<Input
|
||||
id="description"
|
||||
|
||||
Reference in New Issue
Block a user