Remove unnecessary getServerSideProps
This commit is contained in:
parent
ee4916893e
commit
1cb0eeea2b
16 changed files with 1 additions and 53 deletions
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"extends": ["airbnb", "prettier", "next"],
|
||||
"rules": {
|
||||
"react/display-name": [0],
|
||||
"react/jsx-filename-extension": [0],
|
||||
"react/jsx-props-no-spreading": [0],
|
||||
"react/no-array-index-key": [0],
|
||||
"@next/next/no-img-element": [0],
|
||||
"import/prefer-default-export": [0],
|
||||
"import/extensions": [0],
|
||||
"react/function-component-definition": [
|
||||
1,
|
||||
{
|
||||
"namedComponents": "arrow-function",
|
||||
"unnamedComponents": "arrow-function"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +1,9 @@
|
|||
import { useLayoutEffect } from "react";
|
||||
import { NextPage, GetServerSideProps, GetServerSidePropsContext } from "next";
|
||||
import { NextPage } from "next";
|
||||
import { useRouter } from "next/router";
|
||||
import { Grid, CircularProgress } from "@mui/material";
|
||||
import Iframe from "react-iframe";
|
||||
import { useAppContext } from "components/AppProvider";
|
||||
import { checkAuth } from "lib/checkAuth";
|
||||
|
||||
const Setup: NextPage = () => {
|
||||
const {
|
||||
|
|
@ -46,7 +45,3 @@ const Setup: NextPage = () => {
|
|||
};
|
||||
|
||||
export default Setup;
|
||||
|
||||
export const getServerSideProps: GetServerSideProps = async (
|
||||
context: GetServerSidePropsContext
|
||||
) => checkAuth(context);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue