Skip to content

Commit

Permalink
Style: 함수 이름 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwlnyy committed Jan 7, 2025
1 parent ea0b66a commit b7b278b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useState } from 'react';
import { useMutation } from 'react-query';
import { instanceInCalendar } from 'utils/axios';

const usePublicCalendarRequest = <T>() => {
const usePublicScheduleRequest = <T>() => {
const [data, setData] = useState<T | null>(null);
const [status, setStatus] = useState<number>(0);
const [error, setError] = useState<string | null>(null);
Expand Down Expand Up @@ -64,4 +64,4 @@ const usePublicCalendarRequest = <T>() => {
return postMutation;
};

export default usePublicCalendarRequest;
export default usePublicScheduleRequest;
6 changes: 3 additions & 3 deletions pages/calendar/test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { EventSchedule, JobSchedule } from 'types/calendar/scheduleTypes';
import usePublicCalendarRequest from 'hooks/calendar/usePublicCalendarRequest';
import usePublicScheduleRequest from 'hooks/calendar/usePublicScheduleRequest';

const exampleEvent: EventSchedule = {
classification: 'EVENT',
Expand Down Expand Up @@ -32,15 +32,15 @@ const Home = () => {
isError: isEventError,
isSuccess: isEventSuccess,
error: eventError,
} = usePublicCalendarRequest<any>();
} = usePublicScheduleRequest<any>();

const {
mutate: mutateJob,
isLoading: isJobLoading,
isError: isJobError,
isSuccess: isJobSuccess,
error: jobError,
} = usePublicCalendarRequest<any>();
} = usePublicScheduleRequest<any>();

const handleEventSubmit = () => {
mutateEvent({
Expand Down

0 comments on commit b7b278b

Please sign in to comment.