use webapp builder

This commit is contained in:
AmirHossein Mahmoodi
2023-12-20 10:07:49 +03:30
parent 1cdfa1c2da
commit 49afdec0a0
11 changed files with 156 additions and 77 deletions

View File

@@ -1,5 +1,5 @@
import {parse} from "next-useragent";
import LoanFollowUpComponent from "@/components/dashboard/navgan/followUp-loan";
import {globalServerProps} from "@/core/utils/globalServerProps";
export default function FollowUpLoan() {
return (
@@ -8,13 +8,10 @@ export default function FollowUpLoan() {
}
export async function getServerSideProps({req, locale}) {
const {isBot} = parse(req.headers["user-agent"]);
return {
props: {
messages: (await import(`&/locales/${locale}/app.json`)).default,
...await globalServerProps({req, locale}),
title: "LoanRequest.loan_request_page",
isBot,
locale,
layout: {name: 'DashboardLayout'}
},
};