Remove unnecessary getServerSideProps

This commit is contained in:
Darren Clarke 2023-05-25 08:03:04 +00:00
parent ee4916893e
commit 1cb0eeea2b
16 changed files with 1 additions and 53 deletions

View file

@ -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"
}
]
}
}

View file

@ -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);

View file

@ -29,5 +29,3 @@ const LabelStudio: FC = () => (
);
export default LabelStudio;
export const getServerSideProps = async (context: any) => {};

View file

@ -29,5 +29,3 @@ const Metamigo: FC = () => (
);
export default Metamigo;
export const getServerSideProps = async (context: any) => {};

View file

@ -29,5 +29,3 @@ const Zammad: FC = () => (
);
export default Zammad;
export const getServerSideProps = async (context: any) => {};

View file

@ -28,5 +28,3 @@ const Home = () => (
);
export default Home;
export const getServerSideProps = async (context: any) => {};

View file

@ -34,5 +34,3 @@ const About: FC = () => {
};
export default About;
export const getServerSideProps = async (context: any) => {};

View file

@ -35,5 +35,3 @@ const Create: FC = () => {
};
export default Create;
export const getServerSideProps = async (context: any) => {};

View file

@ -35,5 +35,3 @@ const FAQ: FC = () => {
};
export default FAQ;
export const getServerSideProps = async (context: any) => {};

View file

@ -34,5 +34,3 @@ const Leafcutter: FC = () => {
};
export default Leafcutter;
export const getServerSideProps = async (context: any) => {};

View file

@ -35,5 +35,3 @@ const Trends: FC = () => {
};
export default Trends;
export const getServerSideProps = async (context: any) => {};

View file

@ -29,5 +29,3 @@ const Profile: NextPage = () => (
);
export default Profile;
export const getServerSideProps = async (context: any) => {};

View file

@ -29,5 +29,3 @@ const Assigned: FC = () => (
);
export default Assigned;
export const getServerSideProps = async (context: any) => {};

View file

@ -29,5 +29,3 @@ const Pending: FC = () => (
);
export default Pending;
export const getServerSideProps = async (context: any) => {};

View file

@ -29,5 +29,3 @@ const Unassigned: FC = () => (
);
export default Unassigned;
export const getServerSideProps = async (context: any) => {};

View file

@ -29,5 +29,3 @@ const Urgent: FC = () => (
);
export default Urgent;
export const getServerSideProps = async (context: any) => {};