Remove admin SSR
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { NextPage, GetServerSideProps } from "next";
|
||||
import { NextPage } from "next";
|
||||
import Head from "next/head";
|
||||
import { useRouter } from "next/router";
|
||||
import AdminCreateCommon from "@views/admin/AdminCreateCommon";
|
||||
@@ -257,6 +257,4 @@ const EventCreatePage: NextPage = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export const getServerSideProps: GetServerSideProps = async () => ({ props: {} });
|
||||
|
||||
export default EventCreatePage;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { NextPage, GetServerSideProps } from "next";
|
||||
import { NextPage } from "next";
|
||||
import Head from "next/head";
|
||||
import { formatRelative } from "date-fns";
|
||||
import AdminListCommon from "@views/admin/AdminListCommon";
|
||||
@@ -57,6 +57,4 @@ const AdminEventPage: NextPage = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export const getServerSideProps: GetServerSideProps = async () => ({ props: {} });
|
||||
|
||||
export default AdminEventPage;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { NextPage, GetServerSideProps } from "next";
|
||||
import { NextPage } from "next";
|
||||
import Head from "next/head";
|
||||
import { useRouter } from "next/router";
|
||||
import AdminCreateCommon from "@views/admin/AdminCreateCommon";
|
||||
@@ -209,6 +209,4 @@ const FeedCreatePage: NextPage = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export const getServerSideProps: GetServerSideProps = async () => ({ props: {} });
|
||||
|
||||
export default FeedCreatePage;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { NextPage, GetServerSideProps } from "next";
|
||||
import { NextPage } from "next";
|
||||
import Head from "next/head";
|
||||
import { formatRelative } from "date-fns";
|
||||
import AdminListCommon from "@views/admin/AdminListCommon";
|
||||
@@ -58,6 +58,4 @@ const AdminFeedPage: NextPage = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export const getServerSideProps: GetServerSideProps = async () => ({ props: {} });
|
||||
|
||||
export default AdminFeedPage;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import { NextPage, GetServerSideProps } from "next";
|
||||
import { NextPage } from "next";
|
||||
import Head from "next/head";
|
||||
import AdminPageWrapper from "@views/common/AdminPageWrapper";
|
||||
|
||||
@@ -17,5 +17,3 @@ const AdminFrontPage: NextPage = () => (
|
||||
);
|
||||
|
||||
export default AdminFrontPage;
|
||||
|
||||
export const getServerSideProps: GetServerSideProps = async () => ({ props: {} });
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { NextPage, GetServerSideProps } from "next";
|
||||
import { NextPage } from "next";
|
||||
import Head from "next/head";
|
||||
import { useRouter } from "next/router";
|
||||
import AdminCreateCommon from "@views/admin/AdminCreateCommon";
|
||||
@@ -174,6 +174,4 @@ const JobAdCreatePage: NextPage = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export const getServerSideProps: GetServerSideProps = async () => ({ props: {} });
|
||||
|
||||
export default JobAdCreatePage;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { NextPage, GetServerSideProps } from "next";
|
||||
import { NextPage } from "next";
|
||||
import Head from "next/head";
|
||||
import { formatRelative } from "date-fns";
|
||||
import AdminListCommon from "@views/admin/AdminListCommon";
|
||||
@@ -62,6 +62,4 @@ const AdminJobAdPage: NextPage = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export const getServerSideProps: GetServerSideProps = async () => ({ props: {} });
|
||||
|
||||
export default AdminJobAdPage;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useState, useEffect } from "react";
|
||||
import { NextPage, GetServerSideProps } from "next";
|
||||
import { NextPage } from "next";
|
||||
import Head from "next/head";
|
||||
import { useRouter } from "next/router";
|
||||
import styled from "styled-components";
|
||||
@@ -86,6 +86,4 @@ const AdminLoginPage: NextPage = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export const getServerSideProps: GetServerSideProps = async () => ({ props: {} });
|
||||
|
||||
export default AdminLoginPage;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { NextPage, GetServerSideProps } from "next";
|
||||
import { NextPage } from "next";
|
||||
import Head from "next/head";
|
||||
import { useRouter } from "next/router";
|
||||
import AdminCreateCommon from "@views/admin/AdminCreateCommon";
|
||||
@@ -184,6 +184,4 @@ const SignupCreatePage: NextPage = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export const getServerSideProps: GetServerSideProps = async () => ({ props: {} });
|
||||
|
||||
export default SignupCreatePage;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { NextPage, GetServerSideProps } from "next";
|
||||
import { NextPage } from "next";
|
||||
import { useRouter } from "next/router";
|
||||
import AdminCreateCommon from "@views/admin/AdminCreateCommon";
|
||||
import MarkdownEditorWidget from "@components/Widgets/MarkdownEditorWidget";
|
||||
@@ -91,6 +91,4 @@ const SignupEmailPage: NextPage = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export const getServerSideProps: GetServerSideProps = async () => ({ props: {} });
|
||||
|
||||
export default SignupEmailPage;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { NextPage, GetServerSideProps } from "next";
|
||||
import { NextPage } from "next";
|
||||
import { useRouter } from "next/router";
|
||||
import styled from "styled-components";
|
||||
import { CSVLink } from "react-csv";
|
||||
@@ -93,6 +93,4 @@ const SignupEmailPage: NextPage = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export const getServerSideProps: GetServerSideProps = async () => ({ props: {} });
|
||||
|
||||
export default SignupEmailPage;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { NextPage, GetServerSideProps } from "next";
|
||||
import { NextPage } from "next";
|
||||
import Head from "next/head";
|
||||
import { formatRelative } from "date-fns";
|
||||
import AdminListCommon from "@views/admin/AdminListCommon";
|
||||
@@ -62,6 +62,4 @@ const AdminSignupPage: NextPage = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export const getServerSideProps: GetServerSideProps = async () => ({ props: {} });
|
||||
|
||||
export default AdminSignupPage;
|
||||
|
||||
Reference in New Issue
Block a user