remove appWithTranslaiton HOC

This commit is contained in:
Aarni Halinen
2021-04-04 20:25:22 +03:00
parent 0e98ea0b32
commit 6b95cd7a47
14 changed files with 14 additions and 41 deletions
+1 -3
View File
@@ -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;
+1 -2
View File
@@ -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;
+1 -3
View File
@@ -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;
+1 -3
View File
@@ -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;
+1 -3
View File
@@ -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;
+1 -3
View File
@@ -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;
+1 -3
View File
@@ -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;
+1 -3
View File
@@ -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;
+1 -3
View File
@@ -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;
+1 -3
View File
@@ -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;
+1 -3
View File
@@ -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;
+1 -3
View File
@@ -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;
+1 -3
View File
@@ -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;
+1 -3
View File
@@ -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;