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 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 queryClient = useQueryClient()
const showToast = useCustomToast() const showToast = useCustomToast()
const { const {

View File

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

View File

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

View File

@ -33,7 +33,7 @@ const CourseInfoImages = () => {
const queryClient = useQueryClient(); const queryClient = useQueryClient();
const courseDetails = queryClient.getQueryData(['course']) as CourseDetailsPublic | undefined; 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 showToast = useCustomToast()
const { const {
register, register,