document upload form

This commit is contained in:
2022-02-03 15:13:00 +00:00
parent 3639fa3688
commit 5ea7681f77
47 changed files with 13368 additions and 12303 deletions
+5 -1
View File
@@ -1,3 +1,4 @@
//import fs from "fs";
import _ from "lodash";
import useTranslation from "next-translate/useTranslation";
import Head from "next/head";
@@ -120,11 +121,14 @@ const Home = (props) => {
export const getServerSideProps = wrapper.getServerSideProps(
(store) =>
async ({ query, req, res }) => {
const [appealTypeData, lpaData] = await Promise.all([
let [appealTypeData, lpaData] = await Promise.all([
await getAppealsTypes(),
await getLPA(),
]);
// const lpaData = require("../data/lpa.json");
// const appealTypeData = require("../data/appealtypes.json");
store.dispatch(setAppealType(appealTypeData));
store.dispatch(setLPA(lpaData));
}