This commit is contained in:
Philip Cheung 2024-10-08 11:25:05 +08:00
parent 19f4f9437a
commit a029cadf96
4 changed files with 5 additions and 5 deletions

View File

@ -75,7 +75,7 @@ interface EditAboutUsProps {
const EditAboutUs = ({ aboutUs, isOpen, onClose }: EditAboutUsProps) => {
const url = import.meta.env.VITE_API_URL
//const url = import.meta.env.VITE_API_URL
const queryClient = useQueryClient()
const showToast = useCustomToast()
const {

View File

@ -52,7 +52,7 @@ const CourseDetails = () => {
register,
handleSubmit,
reset,
getValues,
//getValues,
setValue,
formState: { isSubmitting, errors, isDirty },
} = useForm<CourseCreate>({

View File

@ -33,13 +33,13 @@ const CourseImages = () => {
const queryClient = useQueryClient();
const courseDetails = queryClient.getQueryData(['course']) as CourseDetailsPublic | undefined;
const url = import.meta.env.VITE_API_URL
//const url = import.meta.env.VITE_API_URL
const showToast = useCustomToast()
const {
register,
handleSubmit,
reset,
getValues,
//getValues,
setValue,
formState: { isSubmitting, errors, isDirty },
} = useForm<ImageCreate>({

View File

@ -33,7 +33,7 @@ const CourseInfoImages = () => {
const queryClient = useQueryClient();
const courseDetails = queryClient.getQueryData(['course']) as CourseDetailsPublic | undefined;
const url = import.meta.env.VITE_API_URL
//const url = import.meta.env.VITE_API_URL
const showToast = useCustomToast()
const {
register,