diff --git a/layers/components/atoms/icons/LogoApple.vue b/layers/components/atoms/icons/LogoApple.vue index 5a51064..28a0ff5 100644 --- a/layers/components/atoms/icons/LogoApple.vue +++ b/layers/components/atoms/icons/LogoApple.vue @@ -6,7 +6,7 @@ interface Props { withDefaults(defineProps(), { size: 20, - color: '#ffffff', + color: 'white', }) @@ -15,14 +15,14 @@ withDefaults(defineProps(), { xmlns="http://www.w3.org/2000/svg" :width="size" :height="size" - viewBox="0 0 36 36" + viewBox="0 0 20 20" :fill="color" > diff --git a/layers/components/blocks/Button/Download.vue b/layers/components/blocks/Button/Download.vue index 34e7577..bbf9671 100644 --- a/layers/components/blocks/Button/Download.vue +++ b/layers/components/blocks/Button/Download.vue @@ -48,7 +48,6 @@ const componentTag = computed(() => { }) const isDuplication = computed(() => props.type === 'duplication') const isSingle = computed(() => props.type === 'single') -const isCustom = computed(() => props.type === 'custom') const platformIcon = computed(() => PLATFORM_ICON_MAP[props.platform]) const duplicationImage = computed(() => isDuplication.value ? DUP_IMAGE_MAP[props.platform] : '' @@ -80,8 +79,8 @@ const handleClick = () => { return } - const url = gameData?.market_json[props.platform]?.url || '' - window.open(url, '_blank') + const url = gameData?.market_json[props.platform]?.url + if (url) window.open(url, '_blank') } @@ -103,7 +102,7 @@ const handleClick = () => { @@ -124,7 +123,7 @@ const handleClick = () => { diff --git a/layers/types/api/gameData.ts b/layers/types/api/gameData.ts index b45dae1..145c87d 100644 --- a/layers/types/api/gameData.ts +++ b/layers/types/api/gameData.ts @@ -121,6 +121,16 @@ export interface GameDataGlobal { lang_json: string // JSON 문자열로 변경 } +export interface GameDataResourceGroupBtnInfo { + color_code_btn: string + color_name_btn: string + color_code_txt: string + color_name_txt: string + disabled: boolean + txt_btn_name: string + detail: Record +} + // 트래킹 타입 export interface GameDataTracking { viewType: string @@ -128,10 +138,24 @@ export interface GameDataTracking { clickSarea: string } +export interface GameDataResourceGroup { + btn_info?: GameDataResourceGroupBtnInfo + tracking: GameDataTracking +} + +type MarketPlatform = 'pc' | 'app_store' | 'google_play' +export type GameDataResourceGroupSet = Partial< + Record +> + +export type GameDataButtonJson = + | GameDataResourceGroup + | GameDataResourceGroupSet + // 버튼 타입 export interface GameDataButton { - depth_type: number - button_json: string // JSON 문자열로 변경 + depth_type: 1 | 2 + button_json: GameDataButtonJson } export type GameDataMenuChildren = Record