File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed
projects/admin/src/components/ModalItem Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,12 @@ import { useQuery } from '@tanstack/react-query';
3
3
import { userQueryKeys , userUrl , get } from 'api/common' ;
4
4
5
5
import type { UseQueryOptions } from '@tanstack/react-query' ;
6
- import type { approvedType } from 'types' ;
6
+ import type { ApprovalStatusType } from 'types' ;
7
7
8
- export const useGetApprovedList = ( options ?: UseQueryOptions < approvedType [ ] > ) =>
9
- useQuery < approvedType [ ] > (
8
+ export const useGetApprovedList = (
9
+ options ?: UseQueryOptions < ApprovalStatusType [ ] >
10
+ ) =>
11
+ useQuery < ApprovalStatusType [ ] > (
10
12
userQueryKeys . getApprovedList ( ) ,
11
13
( ) => get ( userUrl . approvedList ( ) ) ,
12
14
options
Original file line number Diff line number Diff line change 1
- export interface approvedType {
1
+ export interface ApprovalStatusType {
2
2
name : string ;
3
3
createdAt : string ; // LocalDateTime
4
4
userId : string ; // UUID
Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ export * from './solveStatusType';
9
9
export * from './missionDetail' ;
10
10
export * from './studentType' ;
11
11
export * from './uploadProfile' ;
12
- export * from './approvedType ' ;
12
+ export * from './approvalStatus ' ;
Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ import { usePatchApprovalStatus } from 'api/admin';
6
6
7
7
import * as S from './style' ;
8
8
9
- import type { approvedType } from 'types' ;
9
+ import type { ApprovalStatusType } from 'types' ;
10
10
11
11
interface ModalItemProps {
12
- teacherItem : approvedType ;
12
+ teacherItem : ApprovalStatusType ;
13
13
// eslint-disable-next-line no-unused-vars
14
14
onSuccessApproved : ( isAccepted : boolean ) => void ;
15
15
}
You can’t perform that action at this time.
0 commit comments