Updated courses model and fixed rich text editor tool bar drop down problem
This commit is contained in:
@@ -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.",
|
||||
})} />
|
||||
|
Reference in New Issue
Block a user