diff --git a/src/pages/404.tsx b/src/pages/404.tsx index 38f59af..c58c5ed 100644 --- a/src/pages/404.tsx +++ b/src/pages/404.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { NextPage, GetStaticProps } from "next"; +import { NextPage } from "next"; import Head from "next/head"; import styled from "styled-components"; @@ -25,6 +25,4 @@ const NotFoundPage: NextPage = () => ( ); -export const getStaticProps: GetStaticProps = async () => ({ props: {} }); - export default NotFoundPage; diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 924cb10..f182d7a 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -5,7 +5,6 @@ import Head from "next/head"; import styled, { createGlobalStyle } from "styled-components"; import { ToastContainer } from "react-toastify"; import { colors } from "@theme/colors"; -import { appWithTranslation } from "../i18n"; import "react-mde/lib/styles/css/react-mde-all.css"; import "react-toastify/dist/ReactToastify.css"; @@ -159,4 +158,4 @@ const Web20App = ({ Component, pageProps }: AppProps) => ( // return { ...appProps } // } -export default appWithTranslation(Web20App); +export default Web20App; diff --git a/src/pages/admin/events/index.tsx b/src/pages/admin/events/index.tsx index c261008..edfc3f4 100644 --- a/src/pages/admin/events/index.tsx +++ b/src/pages/admin/events/index.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { NextPage, GetStaticProps } from "next"; +import { NextPage } from "next"; import { formatRelative } from "date-fns"; import { toast } from "react-toastify"; import styled from "styled-components"; @@ -75,6 +75,4 @@ const AdminEventPage: NextPage = () => { ); }; -export const getStaticProps: GetStaticProps = async () => ({ props: {} }); - export default AdminEventPage; diff --git a/src/pages/admin/feed/index.tsx b/src/pages/admin/feed/index.tsx index 7137c94..793f27b 100644 --- a/src/pages/admin/feed/index.tsx +++ b/src/pages/admin/feed/index.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { NextPage, GetStaticProps } from "next"; +import { NextPage } from "next"; import { formatRelative } from "date-fns"; import { toast } from "react-toastify"; import styled from "styled-components"; @@ -75,6 +75,4 @@ const AdminFeedPage: NextPage = () => { ); }; -export const getStaticProps: GetStaticProps = async () => ({ props: {} }); - export default AdminFeedPage; diff --git a/src/pages/admin/index.tsx b/src/pages/admin/index.tsx index 331e6e2..cab83e2 100644 --- a/src/pages/admin/index.tsx +++ b/src/pages/admin/index.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { NextPage, GetStaticProps } from "next"; +import { NextPage } from "next"; import Head from "next/head"; import AdminPageWrapper from "@views/common/AdminPageWrapper"; @@ -16,6 +16,4 @@ const AdminFrontPage: NextPage = () => ( ); -export const getStaticProps: GetStaticProps = async () => ({ props: {} }); - export default AdminFrontPage; diff --git a/src/pages/admin/jobads/index.tsx b/src/pages/admin/jobads/index.tsx index 7705cc2..cc6e7fa 100644 --- a/src/pages/admin/jobads/index.tsx +++ b/src/pages/admin/jobads/index.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { NextPage, GetStaticProps } from "next"; +import { NextPage } from "next"; import { formatRelative } from "date-fns"; import { toast } from "react-toastify"; import styled from "styled-components"; @@ -79,6 +79,4 @@ const AdminJobAdPage: NextPage = () => { ); }; -export const getStaticProps: GetStaticProps = async () => ({ props: {} }); - export default AdminJobAdPage; diff --git a/src/pages/admin/login.tsx b/src/pages/admin/login.tsx index cb81da3..a7f052b 100644 --- a/src/pages/admin/login.tsx +++ b/src/pages/admin/login.tsx @@ -1,5 +1,5 @@ import React, { useState, useEffect } from "react"; -import { NextPage, GetStaticProps } from "next"; +import { NextPage } from "next"; import { useRouter } from "next/router"; import styled from "styled-components"; import { generateToken, setTokenCookie, isAuthenticated } from "@utils/auth"; @@ -80,6 +80,4 @@ const AdminLoginPage: NextPage = () => { ); }; -export const getStaticProps: GetStaticProps = async () => ({ props: {} }); - export default AdminLoginPage; diff --git a/src/pages/admin/logout.tsx b/src/pages/admin/logout.tsx index f2593e7..9c506ef 100644 --- a/src/pages/admin/logout.tsx +++ b/src/pages/admin/logout.tsx @@ -1,4 +1,4 @@ -import { NextPage, GetStaticProps } from "next"; +import { NextPage } from "next"; import { useRouter } from "next/router"; import { deleteTokenCookie } from "@utils/auth"; @@ -12,6 +12,4 @@ const AdminLogoutPage: NextPage = () => { return null; }; -export const getStaticProps: GetStaticProps = async () => ({ props: {} }); - export default AdminLogoutPage; diff --git a/src/pages/admin/signups/index.tsx b/src/pages/admin/signups/index.tsx index 36123c0..6c4b762 100644 --- a/src/pages/admin/signups/index.tsx +++ b/src/pages/admin/signups/index.tsx @@ -1,5 +1,5 @@ import React, { useEffect, useState } from "react"; -import { NextPage, GetStaticProps } from "next"; +import { NextPage } from "next"; import { formatRelative } from "date-fns"; import { toast } from "react-toastify"; import styled from "styled-components"; @@ -84,6 +84,4 @@ const AdminSignupPage: NextPage = () => { ); }; -export const getStaticProps: GetStaticProps = async () => ({ props: {} }); - export default AdminSignupPage; diff --git a/src/pages/kilta/fuksi.tsx b/src/pages/kilta/fuksi.tsx index ee5feda..f1b6b7a 100644 --- a/src/pages/kilta/fuksi.tsx +++ b/src/pages/kilta/fuksi.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { NextPage, GetStaticProps } from "next"; +import { NextPage } from "next"; import Head from "next/head"; import FreshmenPageView from "@views/FreshmenPage/FreshmenPageView"; import PageWrapper from "@views/common/PageWrapper"; @@ -15,6 +15,4 @@ const FreshmenPage: NextPage = () => ( ); -export const getStaticProps: GetStaticProps = async () => ({ props: {} }); - export default FreshmenPage; diff --git a/src/pages/kilta/index.tsx b/src/pages/kilta/index.tsx index 401b9e3..4d24616 100644 --- a/src/pages/kilta/index.tsx +++ b/src/pages/kilta/index.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { NextPage, GetStaticProps } from "next"; +import { NextPage } from "next"; import Head from "next/head"; import GuildPageView from "@views/GuildPage/GuildPageView"; import PageWrapper from "@views/common/PageWrapper"; @@ -15,6 +15,4 @@ const GuildPage: NextPage = () => ( ); -export const getStaticProps: GetStaticProps = async () => ({ props: {} }); - export default GuildPage; diff --git a/src/pages/kilta/kunnia.tsx b/src/pages/kilta/kunnia.tsx index be080ac..ca416f8 100644 --- a/src/pages/kilta/kunnia.tsx +++ b/src/pages/kilta/kunnia.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { NextPage, GetStaticProps } from "next"; +import { NextPage } from "next"; import Head from "next/head"; import HonoraryPageView from "@views/HonoraryPage/HonoraryPageView"; import PageWrapper from "@views/common/PageWrapper"; @@ -15,6 +15,4 @@ const HonoraryPage: NextPage = () => ( ); -export const getStaticProps: GetStaticProps = async () => ({ props: {} }); - export default HonoraryPage; diff --git a/src/pages/opinnot_ja_ura.tsx b/src/pages/opinnot_ja_ura.tsx index cd08098..0f448f9 100644 --- a/src/pages/opinnot_ja_ura.tsx +++ b/src/pages/opinnot_ja_ura.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { NextPage, GetStaticProps } from "next"; +import { NextPage } from "next"; import Head from "next/head"; import StudiesPageView from "@views/StudiesPage/StudiesPageView"; import PageWrapper from "@views/common/PageWrapper"; @@ -15,6 +15,4 @@ const StudiesPage: NextPage = () => ( ); -export const getStaticProps: GetStaticProps = async () => ({ props: {} }); - export default StudiesPage; diff --git a/src/pages/yhteystiedot.tsx b/src/pages/yhteystiedot.tsx index 3d7bdd9..1492246 100644 --- a/src/pages/yhteystiedot.tsx +++ b/src/pages/yhteystiedot.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { NextPage, GetStaticProps } from "next"; +import { NextPage } from "next"; import Head from "next/head"; import ContactsPageView from "@views/ContactsPage/ContactsPageView"; import PageWrapper from "@views/common/PageWrapper"; @@ -15,6 +15,4 @@ const ContactsPage: NextPage = () => ( ); -export const getStaticProps: GetStaticProps = async () => ({ props: {} }); - export default ContactsPage;