From d92e46bf3fdccb591437d53a3a0b7123d19b3173 Mon Sep 17 00:00:00 2001 From: kurone-kito Date: Sat, 3 Aug 2024 10:43:56 +0900 Subject: [PATCH] test: added the trace --- .../web/src/components/molecules/LanguageChanger.tsx | 5 +++-- nodePackages/web/src/modules/useLanguageHref.ts | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/nodePackages/web/src/components/molecules/LanguageChanger.tsx b/nodePackages/web/src/components/molecules/LanguageChanger.tsx index 288b7f56..957ca937 100644 --- a/nodePackages/web/src/components/molecules/LanguageChanger.tsx +++ b/nodePackages/web/src/components/molecules/LanguageChanger.tsx @@ -1,4 +1,4 @@ -import { A } from '@solidjs/router'; +import { A, useLocation } from '@solidjs/router'; import { TbLanguageHiragana } from 'solid-icons/tb'; import type { Component } from 'solid-js'; import { useLanguageHref } from '../../modules/useLanguageHref'; @@ -10,6 +10,7 @@ import { useLanguageHref } from '../../modules/useLanguageHref'; export const LanguageChanger: Component = () => { const enLink = useLanguageHref('en'); const jaLink = useLanguageHref('ja'); + const location = useLocation(); return (