Skip to content

Commit e6c01bb

Browse files
committed
♻️ [refactor] : 카테고리 타입 수정
1 parent 74f558e commit e6c01bb

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

src/constants/admin.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,21 @@ import type {
3838
RoleTypes,
3939
RoleTypesEnum,
4040
UserRegistrationProps,
41-
CategoryFirstData,
42-
CategorySecondData
41+
mainCategoryTypes,
42+
subCategoryTypes
4343
} from '@/types/admin'
4444

45-
export const CATEGORY_FIRST_ADD: CategoryFirstData = {
45+
export const CATEGORY_FIRST_ADD: mainCategoryTypes = {
4646
name: '',
47-
code: ''
47+
code: '',
48+
id: 0
4849
}
4950

50-
export const CATEGORY_SECOND_ADD: CategorySecondData = {
51+
export const CATEGORY_SECOND_ADD: subCategoryTypes = {
5152
name: '',
52-
firstCategory: '',
53-
code: ''
53+
mainCategoryId: 0,
54+
code: '',
55+
id: 0
5456
}
5557

5658
export const INITIAL_USER_REGISTRATION: UserRegistrationProps = {

src/types/admin.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,6 @@ export interface LogsListData {
2222
result?: string
2323
}
2424

25-
export interface CategoryFirstData {
26-
name: string
27-
code: string
28-
}
29-
30-
export interface CategorySecondData {
31-
name: string
32-
firstCategory: string
33-
code: string
34-
}
35-
3625
export interface UserRegistrationProps {
3726
name: string
3827
email: string

0 commit comments

Comments
 (0)