From 03d1b3385d80a25f8f67f5684dfb881c64504145 Mon Sep 17 00:00:00 2001 From: keitakn Date: Sat, 5 Oct 2024 00:13:12 +0900 Subject: [PATCH] =?UTF-8?q?:bug:=20#324=20=E8=A8=80=E8=AA=9E=E3=83=A1?= =?UTF-8?q?=E3=83=8B=E3=83=A5=E3=83=BC=E3=81=AE=E3=83=AA=E3=83=B3=E3=82=AF?= =?UTF-8?q?=E5=85=88=E8=A8=AD=E5=AE=9A=E3=83=AD=E3=82=B8=E3=83=83=E3=82=AF?= =?UTF-8?q?=E3=81=8C=E9=96=93=E9=81=95=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F?= =?UTF-8?q?=E3=81=AE=E3=81=A7=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/_components/Header.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/_components/Header.tsx b/src/app/_components/Header.tsx index 719c388..235175a 100644 --- a/src/app/_components/Header.tsx +++ b/src/app/_components/Header.tsx @@ -4,7 +4,7 @@ import { GlobeIcon } from '@/app/_components/icons/GlobeIcon'; import { RightIcon } from '@/app/_components/icons/RightIcon'; import { LoginButton } from '@/app/_components/LoginButton'; import { createExternalTransmissionPolicyLinksFromLanguages } from '@/features/externalTransmissionPolicy'; -import type { Language } from '@/features/language'; +import { removeLanguageFromAppPath, type Language } from '@/features/language'; import { createPrivacyPolicyLinksFromLanguages } from '@/features/privacyPolicy'; import { createTermsOfUseLinksFromLanguages } from '@/features/termsOfUse'; import { appPathList, type IncludeLanguageAppPath } from '@/features/url'; @@ -31,6 +31,7 @@ export const Header = ({ language, currentUrlPath }: Props): JSX.Element => { const privacy = createPrivacyPolicyLinksFromLanguages(language); const externalTransmissionPolicy = createExternalTransmissionPolicyLinksFromLanguages(language); + const removedLanguagePath = removeLanguageFromAppPath(currentUrlPath); return ( @@ -115,7 +116,7 @@ export const Header = ({ language, currentUrlPath }: Props): JSX.Element => { }`} > @@ -134,7 +135,7 @@ export const Header = ({ language, currentUrlPath }: Props): JSX.Element => { }`} >