This commit is contained in:
Philip Cheung 2024-10-08 11:21:44 +08:00
parent eaabe01b4d
commit 19f4f9437a
4 changed files with 10 additions and 10 deletions

View File

@ -165,7 +165,7 @@ const EditAboutUs = ({ aboutUs, isOpen, onClose }: EditAboutUsProps) => {
<ModalCloseButton /> <ModalCloseButton />
<ModalBody pb={30}> <ModalBody pb={30}>
<Box boxSize='auto'> <Box boxSize='auto'>
<Image src={url + "/" + aboutUs.image} /> <Image src={import.meta.env.VITE_IMAGE_URL+"/"+aboutUs.image} />
</Box> </Box>
<FormControl isRequired isInvalid={!!errors.title}> <FormControl isRequired isInvalid={!!errors.title}>
<FormLabel htmlFor="title">Title</FormLabel> <FormLabel htmlFor="title">Title</FormLabel>

View File

@ -231,7 +231,7 @@ const CourseDetails = () => {
/> />
</FormControl> </FormControl>
<FormControl mt={4}></FormControl> <FormControl mt={4}></FormControl>
<button {/* <button
type="button" type="button"
onClick={() => { onClick={() => {
const values = getValues() const values = getValues()
@ -240,7 +240,7 @@ const CourseDetails = () => {
}} }}
> >
Get Values Get Values
</button> </button> */}
<Button <Button
variant="primary" variant="primary"
type="submit" type="submit"

View File

@ -109,7 +109,7 @@ const CourseImages = () => {
<ActionsMenu type={"Image"} value={image} /> <ActionsMenu type={"Image"} value={image} />
</Grid> </Grid>
<Image key={index} src={url + "/" + image.image} objectFit="cover" /> <Image key={index} src={import.meta.env.VITE_IMAGE_URL + "/" + image.image} objectFit="cover" />
</Box> </Box>
))} ))}
@ -145,7 +145,7 @@ const CourseImages = () => {
{errors.image && errors?.image.message} {errors.image && errors?.image.message}
</FormErrorMessage> </FormErrorMessage>
</FormControl> </FormControl>
<button {/* <button
type="button" type="button"
onClick={() => { onClick={() => {
const values = getValues() const values = getValues()
@ -154,7 +154,7 @@ const CourseImages = () => {
}} }}
> >
Get Values Get Values
</button> </button> */}
<Button <Button
variant="primary" variant="primary"
type="submit" type="submit"

View File

@ -108,7 +108,7 @@ const CourseInfoImages = () => {
<ActionsMenu type={"Info_Image"} value={image} /> <ActionsMenu type={"Info_Image"} value={image} />
</Grid> </Grid>
<Image key={index} src={url + "/" + image.image} objectFit="cover" /> <Image key={index} src={import.meta.env.VITE_IMAGE_URL + "/" + image.image} objectFit="cover" />
</Box> </Box>
))} ))}