diff --git a/layers/components/blocks/Button/Launcher.vue b/layers/components/blocks/Button/Launcher.vue index f56376f..97edbc5 100644 --- a/layers/components/blocks/Button/Launcher.vue +++ b/layers/components/blocks/Button/Launcher.vue @@ -31,12 +31,6 @@ const { isProcessing, validateLauncher } = useCheckGameStart() const { gameData } = storeToRefs(gameDataStore) -const PLATFORM_LABEL_KEY: Record = { - pc: 'PC', - google_play: 'Google Play', - app_store: 'App Store', -} as const - const PLATFORM_ICON_MAP: Record = { google_play: 'AtomsIconsLogoGoogle', app_store: 'AtomsIconsLogoApple', @@ -93,7 +87,7 @@ const tmWithGameName = (key: string): string => { ) const platformLines = supportedPlatforms.value - .map(platform => highlight(PLATFORM_LABEL_KEY[platform] as string)) + .map(platform => highlight(formatSnakeToTitle(platform))) .filter(Boolean) return platformLines.length diff --git a/layers/components/blocks/Button/Sns.vue b/layers/components/blocks/Sns.vue similarity index 94% rename from layers/components/blocks/Button/Sns.vue rename to layers/components/blocks/Sns.vue index 3a4bdc7..f6d5e91 100644 --- a/layers/components/blocks/Button/Sns.vue +++ b/layers/components/blocks/Sns.vue @@ -26,12 +26,8 @@ const snsList = computed(() => { return gameData.value?.sns_json }) -const handleMouseEnter = () => { - showSnsList.value = true -} - -const handleForceClose = () => { - showSnsList.value = false +const handleControlForce = (state: boolean) => { + showSnsList.value = state } const handleCopy = async () => { @@ -56,7 +52,7 @@ const handleCopy = async () => { class="btn-sns" sr-only="sns" :style="{ backgroundColor: snsBackgroundColor }" - @click="handleMouseEnter" + @click="handleControlForce(true)" > @@ -96,7 +92,7 @@ const handleCopy = async () => {