Skip to content

Commit 974654c

Browse files
author
TaerangLee
committed
Update approvedType -> approvalStatusType naming change
1 parent 41e57ae commit 974654c

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

packages/api/admin/src/hooks/user/useGetApprovedList.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ import { useQuery } from '@tanstack/react-query';
33
import { userQueryKeys, userUrl, get } from 'api/common';
44

55
import type { UseQueryOptions } from '@tanstack/react-query';
6-
import type { approvedType } from 'types';
6+
import type { ApprovalStatusType } from 'types';
77

8-
export const useGetApprovedList = (options?: UseQueryOptions<approvedType[]>) =>
9-
useQuery<approvedType[]>(
8+
export const useGetApprovedList = (
9+
options?: UseQueryOptions<ApprovalStatusType[]>
10+
) =>
11+
useQuery<ApprovalStatusType[]>(
1012
userQueryKeys.getApprovedList(),
1113
() => get(userUrl.approvedList()),
1214
options

packages/types/src/approvedType.ts renamed to packages/types/src/approvalStatus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export interface approvedType {
1+
export interface ApprovalStatusType {
22
name: string;
33
createdAt: string; // LocalDateTime
44
userId: string; // UUID

packages/types/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ export * from './solveStatusType';
99
export * from './missionDetail';
1010
export * from './studentType';
1111
export * from './uploadProfile';
12-
export * from './approvedType';
12+
export * from './approvalStatus';

projects/admin/src/components/ModalItem/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import { usePatchApprovalStatus } from 'api/admin';
66

77
import * as S from './style';
88

9-
import type { approvedType } from 'types';
9+
import type { ApprovalStatusType } from 'types';
1010

1111
interface ModalItemProps {
12-
teacherItem: approvedType;
12+
teacherItem: ApprovalStatusType;
1313
// eslint-disable-next-line no-unused-vars
1414
onSuccessApproved: (isAccepted: boolean) => void;
1515
}

0 commit comments

Comments
 (0)