From 0258de61b0b6cbb719a3d86039f36532cad4fc82 Mon Sep 17 00:00:00 2001 From: yudejp Date: Wed, 22 Sep 2021 07:24:00 +0900 Subject: [PATCH] Fix unused val, Add comments --- pages/hcunews.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pages/hcunews.js b/pages/hcunews.js index 565eb5a..bb265a8 100644 --- a/pages/hcunews.js +++ b/pages/hcunews.js @@ -1,15 +1,17 @@ +// Base layout import Layout from "./components/Layout" + +// React, i18n import useTranslation from 'next-translate/useTranslation' -import { useRouter } from 'next/router' import React from "react" import ReactMarkdown from "react-markdown" + +// Markdown import gfm from 'remark-gfm'; import ja from '../docs/hcunews/ja.md' import en from '../docs/hcunews/en.md' -export default function Tos(props) { - const router = useRouter() - const { locale, locales, defaultLocale, pathname } = router +export default function HcuNews() { const { t, lang } = useTranslation("hcunews") return(