Skip to content

Commit

Permalink
refactor: const assertion 수정정
Browse files Browse the repository at this point in the history
  • Loading branch information
SunwooJaeho committed Dec 22, 2024
1 parent 4358350 commit 5746186
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions apps/community/src/apis/about/club/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { queryOptions } from '@tanstack/react-query';
import { getClubs } from './remote';

const CLUB_QUERY_KEY = {
ALL: ['clubs'] as const,
};
ALL: ['clubs'],
} as const;

const CLUB_QUERY_OPTIONS = {
ALL: () =>
Expand Down
4 changes: 2 additions & 2 deletions apps/community/src/apis/about/contact/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { queryOptions } from '@tanstack/react-query';
import { getContacts } from './remote';

const CONTACT_QUERY_KEYS = {
ALL: ['contacts'] as const,
};
ALL: ['contacts'],
} as const;

const CONTACT_QUERY_OPTIONS = {
ALL: () =>
Expand Down
4 changes: 2 additions & 2 deletions apps/community/src/apis/about/dept/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { queryOptions } from '@tanstack/react-query';
import { getDepts } from './remote';

const DEPT_QUERY_KEYS = {
ALL: ['depts'] as const,
};
ALL: ['depts'],
} as const;

const DEPT_QUERY_OPTIONS = {
ALL: () =>
Expand Down
2 changes: 1 addition & 1 deletion apps/community/src/apis/board/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const BOARD_QUERY_KEYS = {
PAGE: (options: PaginationOptions) => [...BOARD_QUERY_KEYS.PAGES(), options],
DETAILS: () => [...BOARD_QUERY_KEYS.ALL(), 'details'],
DETAIL: (postId: string) => [...BOARD_QUERY_KEYS.DETAILS(), postId],
};
} as const;

const BOARD_QUERY_OPTIONS = {
ALL: ({
Expand Down
4 changes: 2 additions & 2 deletions apps/community/src/apis/lab/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { queryOptions } from '@tanstack/react-query';
import { getLabs } from './remote';

const LABS_QUERY_KEYS = {
ALL: ['labs'] as const,
};
ALL: ['labs'],
} as const;

const LABS_QUERY_OPTIONS = {
ALL: () =>
Expand Down
4 changes: 2 additions & 2 deletions apps/community/src/apis/member/professor/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { queryOptions } from '@tanstack/react-query';
import { getProfessors } from './remote';

const PROFESSORS_QUERY_KEYS = {
ALL: ['contacts'] as const,
};
ALL: ['contacts'],
} as const;

const PROFESSORS_QUERY_OPTIONS = {
ALL: () =>
Expand Down

0 comments on commit 5746186

Please sign in to comment.