0
0
mirror of https://github.com/yude-jp/yude.jp synced 2025-12-17 05:04:15 +09:00
This commit is contained in:
2021-12-11 18:07:22 +09:00
parent c856a34867
commit d9559dd072
46 changed files with 218 additions and 300 deletions

View File

@@ -8,8 +8,6 @@ import Link from 'next/link'
export default function Modal() {
const [showModal, setShowModal] = React.useState(false);
const router = useRouter()
const { t, lang } = useTranslation("common")
const { locale, locales, defaultLocale, pathname } = router
const close = t('common:close')
const keys = t('profile:keys')
const view = t('profile:view')

View File

@@ -4,9 +4,6 @@ import useTranslation from 'next-translate/useTranslation'
import { useRouter } from 'next/router'
function App () {
const router = useRouter()
const { locale, locales, defaultLocale, pathname } = router
const { t, lang } = useTranslation("common")
const [data, setData] = useState({ hits: [] });
useEffect(() => {
const fetchData = async () => {

View File

@@ -6,10 +6,7 @@ import { useRouter } from 'next/router'
export default function Modal() {
const [showModal, setShowModal] = React.useState(false);
const router = useRouter()
const { locale, locales, defaultLocale, pathname } = router
const { t, lang } = useTranslation("common")
const close = t('common:close')
return (
<>
<button