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 { useLayoutEffect } from "react";
|
||||||
import { NextPage, GetServerSideProps, GetServerSidePropsContext } from "next";
|
import { NextPage } from "next";
|
||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
import { Grid, CircularProgress } from "@mui/material";
|
import { Grid, CircularProgress } from "@mui/material";
|
||||||
import Iframe from "react-iframe";
|
import Iframe from "react-iframe";
|
||||||
import { useAppContext } from "components/AppProvider";
|
import { useAppContext } from "components/AppProvider";
|
||||||
import { checkAuth } from "lib/checkAuth";
|
|
||||||
|
|
||||||
const Setup: NextPage = () => {
|
const Setup: NextPage = () => {
|
||||||
const {
|
const {
|
||||||
|
|
@ -46,7 +45,3 @@ const Setup: NextPage = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Setup;
|
export default Setup;
|
||||||
|
|
||||||
export const getServerSideProps: GetServerSideProps = async (
|
|
||||||
context: GetServerSidePropsContext
|
|
||||||
) => checkAuth(context);
|
|
||||||
|
|
|
||||||
|
|
@ -29,5 +29,3 @@ const LabelStudio: FC = () => (
|
||||||
);
|
);
|
||||||
|
|
||||||
export default LabelStudio;
|
export default LabelStudio;
|
||||||
|
|
||||||
export const getServerSideProps = async (context: any) => {};
|
|
||||||
|
|
|
||||||
|
|
@ -29,5 +29,3 @@ const Metamigo: FC = () => (
|
||||||
);
|
);
|
||||||
|
|
||||||
export default Metamigo;
|
export default Metamigo;
|
||||||
|
|
||||||
export const getServerSideProps = async (context: any) => {};
|
|
||||||
|
|
|
||||||
|
|
@ -29,5 +29,3 @@ const Zammad: FC = () => (
|
||||||
);
|
);
|
||||||
|
|
||||||
export default Zammad;
|
export default Zammad;
|
||||||
|
|
||||||
export const getServerSideProps = async (context: any) => {};
|
|
||||||
|
|
|
||||||
|
|
@ -28,5 +28,3 @@ const Home = () => (
|
||||||
);
|
);
|
||||||
|
|
||||||
export default Home;
|
export default Home;
|
||||||
|
|
||||||
export const getServerSideProps = async (context: any) => {};
|
|
||||||
|
|
|
||||||
|
|
@ -34,5 +34,3 @@ const About: FC = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
export default About;
|
export default About;
|
||||||
|
|
||||||
export const getServerSideProps = async (context: any) => {};
|
|
||||||
|
|
|
||||||
|
|
@ -35,5 +35,3 @@ const Create: FC = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Create;
|
export default Create;
|
||||||
|
|
||||||
export const getServerSideProps = async (context: any) => {};
|
|
||||||
|
|
|
||||||
|
|
@ -35,5 +35,3 @@ const FAQ: FC = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
export default FAQ;
|
export default FAQ;
|
||||||
|
|
||||||
export const getServerSideProps = async (context: any) => {};
|
|
||||||
|
|
|
||||||
|
|
@ -34,5 +34,3 @@ const Leafcutter: FC = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Leafcutter;
|
export default Leafcutter;
|
||||||
|
|
||||||
export const getServerSideProps = async (context: any) => {};
|
|
||||||
|
|
|
||||||
|
|
@ -35,5 +35,3 @@ const Trends: FC = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Trends;
|
export default Trends;
|
||||||
|
|
||||||
export const getServerSideProps = async (context: any) => {};
|
|
||||||
|
|
|
||||||
|
|
@ -29,5 +29,3 @@ const Profile: NextPage = () => (
|
||||||
);
|
);
|
||||||
|
|
||||||
export default Profile;
|
export default Profile;
|
||||||
|
|
||||||
export const getServerSideProps = async (context: any) => {};
|
|
||||||
|
|
|
||||||
|
|
@ -29,5 +29,3 @@ const Assigned: FC = () => (
|
||||||
);
|
);
|
||||||
|
|
||||||
export default Assigned;
|
export default Assigned;
|
||||||
|
|
||||||
export const getServerSideProps = async (context: any) => {};
|
|
||||||
|
|
|
||||||
|
|
@ -29,5 +29,3 @@ const Pending: FC = () => (
|
||||||
);
|
);
|
||||||
|
|
||||||
export default Pending;
|
export default Pending;
|
||||||
|
|
||||||
export const getServerSideProps = async (context: any) => {};
|
|
||||||
|
|
|
||||||
|
|
@ -29,5 +29,3 @@ const Unassigned: FC = () => (
|
||||||
);
|
);
|
||||||
|
|
||||||
export default Unassigned;
|
export default Unassigned;
|
||||||
|
|
||||||
export const getServerSideProps = async (context: any) => {};
|
|
||||||
|
|
|
||||||
|
|
@ -29,5 +29,3 @@ const Urgent: FC = () => (
|
||||||
);
|
);
|
||||||
|
|
||||||
export default Urgent;
|
export default Urgent;
|
||||||
|
|
||||||
export const getServerSideProps = async (context: any) => {};
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue