Skip to content

Commit 71b930b

Browse files
committed
♻️ [refactor] : Interface 이름 컨벤션에 맞게 변경
1 parent 11a2010 commit 71b930b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/components/TitleBar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
<script setup lang="ts">
1717
import { plusIcon } from '@/constants/iconPath'
18-
import type { TitleBar } from '@/types/common'
18+
import type { TitleBarProps } from '@/types/common'
1919
import CommonIcons from './common/CommonIcons.vue'
2020
21-
const props = defineProps<TitleBar>()
21+
const props = defineProps<TitleBarProps>()
2222
defineEmits(['buttonClick'])
2323
</script>

src/components/filters/FilterCategory.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@
7474

7575
<script setup lang="ts">
7676
import { dropdownIcon } from '@/constants/iconPath'
77-
import type { Category, FilterCategory } from '@/types/common'
77+
import type { Category, FilterCategoryProps } from '@/types/common'
7878
import { computed, ref, watchEffect } from 'vue'
7979
import CommonIcons from '../common/CommonIcons.vue'
8080
81-
const { categoryList, main, sub } = defineProps<FilterCategory>()
81+
const { categoryList, main, sub } = defineProps<FilterCategoryProps>()
8282
const emit = defineEmits(['update:main', 'update:sub'])
8383
8484
const isMainOpened = ref(false)

src/types/common.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Ref } from 'vue'
22

3-
export interface TitleBar {
3+
export interface TitleBarProps {
44
title: string
55
btn?: string
66
}
@@ -23,7 +23,7 @@ export interface Category {
2323
subCategoryList?: { id: number; content: string }[]
2424
}
2525

26-
export interface FilterCategory {
26+
export interface FilterCategoryProps {
2727
categoryList: Category[]
2828
main: Ref<number[]> | number[]
2929
sub: Ref<number[]> | number[]
@@ -41,6 +41,6 @@ export interface ListBarTabProps {
4141
content: string
4242
width?: number
4343
sortBy?: string
44-
currentOrderRequest: { sortBy: string; sortDirection: 'DESC' | 'ASC' }
44+
currentOrderRequest?: { sortBy: string; sortDirection: 'DESC' | 'ASC' }
4545
justifyCenter?: boolean
4646
}

0 commit comments

Comments
 (0)