From a5b7fc2e3963a1f1e0d8d2a75dabeed67de29a96 Mon Sep 17 00:00:00 2001 From: selankon Date: Fri, 12 Jan 2024 15:11:11 +0100 Subject: [PATCH] Fix #165 Move the links inside a component in order to rebuild it when language change --- components/pages/app/footer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/pages/app/footer.tsx b/components/pages/app/footer.tsx index 8c70f04..8eac466 100644 --- a/components/pages/app/footer.tsx +++ b/components/pages/app/footer.tsx @@ -1,11 +1,12 @@ import React from 'react'; import styled, { useTheme } from 'styled-components'; import Link from 'next/link'; -import i18n from '../../../i18n'; import { HOME_PATH } from '@const/routes'; +import { useTranslation } from 'react-i18next'; export const Footer = () => { const theme = useTheme(); + const { i18n } = useTranslation(); const LINKS: HeaderLink[] = [ // {