From 230ff72bea80ae0fdf0e9de6e275a86224e2d2e3 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 3 Dec 2022 19:10:19 -0800 Subject: [PATCH] Fix on new page --- pages/new/index.tsx | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/pages/new/index.tsx b/pages/new/index.tsx index d2762f02..06c4deca 100644 --- a/pages/new/index.tsx +++ b/pages/new/index.tsx @@ -1,6 +1,9 @@ import React, { useEffect } from "react" +import Head from "next/head" import { getCookie } from "cookies-next" import { serverSideTranslations } from "next-i18next/serverSideTranslations" +import { useRouter } from "next/router" +import { useTranslation } from "next-i18next" import Party from "~components/Party" @@ -17,6 +20,10 @@ interface Props { } const NewRoute: React.FC = (props: Props) => { + const { t } = useTranslation("common") + const router = useRouter() + const locale = router.locale || "en" + function callback(path: string) { // This is scuffed, how do we do this natively? window.history.replaceState(null, `Grid Tool`, `${path}`) @@ -33,8 +40,35 @@ const NewRoute: React.FC = (props: Props) => { } return ( -
- +
+ + {"New team / granblue.team"} + + + + + + + + + + + +
+ +
) }