Updated courses model and fixed rich text editor tool bar drop down problem

This commit is contained in:
2024-10-03 10:28:33 +08:00
parent 42fbcc5d89
commit 68378d55ac
20 changed files with 652 additions and 28 deletions

View File

@@ -186,14 +186,7 @@ const AddAboutUs = ({ isOpen, onClose }: AddAboutUsProps) => {
<NumberDecrementStepper />
</NumberInputStepper>
</NumberInput>
{/* <Input
id="index"
{...register("index", {
required: "index is required.",
})}
placeholder="Index"
type="Number"
/> */}
{errors.index && (
<FormErrorMessage>{errors.index.message}</FormErrorMessage>
)}
@@ -202,15 +195,7 @@ const AddAboutUs = ({ isOpen, onClose }: AddAboutUsProps) => {
<FormControl isInvalid={!!errors.image} isRequired>
<FormLabel>{'Image Upload'}</FormLabel>
{/* <FileUpload
accept={'image/*'}
multiple={false}
register={register('image', { validate: validateFiles })}
>
<Button >
Upload
</Button>
</FileUpload> */}
<input type="file" {...register("image", {
required: "index is required.",
})} />