Merge branch 'main' into 'develop'
Amiriis - Fixed bugs in dashboard first page See merge request witel-front-end/loan-facilities/user!45
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
"@mui/lab": "^5.0.0-alpha.152",
|
"@mui/lab": "^5.0.0-alpha.152",
|
||||||
"@mui/material": "^5.12.0",
|
"@mui/material": "^5.12.0",
|
||||||
"@mui/x-date-pickers": "^6.18.5",
|
"@mui/x-date-pickers": "^6.18.5",
|
||||||
"@witel/webapp-builder": "^1.3.1",
|
"@witel/webapp-builder": "^1.3.2",
|
||||||
"axios": "^1.4.0",
|
"axios": "^1.4.0",
|
||||||
"colord": "^2.9.3",
|
"colord": "^2.9.3",
|
||||||
"date-fns-jalali": "^2.13.0-0",
|
"date-fns-jalali": "^2.13.0-0",
|
||||||
|
|||||||
@@ -127,7 +127,9 @@
|
|||||||
"complete_information": "مشخصات"
|
"complete_information": "مشخصات"
|
||||||
},
|
},
|
||||||
"Dashboard": {
|
"Dashboard": {
|
||||||
"dashboard_page": "داشبورد"
|
"dashboard_page": "داشبورد",
|
||||||
|
"go_to_add_request_loan": "درخواست تسهیلات نوسازی ناوگان",
|
||||||
|
"go_to_followUp-loan": "پیگیری وضعیت تسهیلات نوسازی ناوگان"
|
||||||
},
|
},
|
||||||
"LoanFollowUp": {
|
"LoanFollowUp": {
|
||||||
"loan_follow_up_page": "پیگیری درخواست",
|
"loan_follow_up_page": "پیگیری درخواست",
|
||||||
|
|||||||
@@ -1,5 +1,46 @@
|
|||||||
|
import {
|
||||||
|
CenterLayout,
|
||||||
|
FullPageLayout,
|
||||||
|
NextLinkComposed,
|
||||||
|
useUser,
|
||||||
|
} from "@witel/webapp-builder";
|
||||||
|
import { Button, Typography } from "@mui/material";
|
||||||
|
import { useTranslations } from "next-intl";
|
||||||
|
|
||||||
const FirstComponent = () => {
|
const FirstComponent = () => {
|
||||||
return <></>;
|
const { user } = useUser();
|
||||||
|
const t = useTranslations();
|
||||||
|
return (
|
||||||
|
<FullPageLayout>
|
||||||
|
<CenterLayout spacing={2}>
|
||||||
|
{user.permissions.includes("can_request_navgan_loan") ? (
|
||||||
|
<>
|
||||||
|
<Typography>{t("Dashboard.go_to_add_request_loan")}</Typography>
|
||||||
|
<Button
|
||||||
|
component={NextLinkComposed}
|
||||||
|
to={{ pathname: "/dashboard/navgan/add-request-loan" }}
|
||||||
|
variant={"contained"}
|
||||||
|
size={"large"}
|
||||||
|
>
|
||||||
|
{t("LoanRequest.loan_request_page")}
|
||||||
|
</Button>
|
||||||
|
</>
|
||||||
|
) : (
|
||||||
|
<>
|
||||||
|
<Typography>{t("Dashboard.go_to_followUp-loan")}</Typography>
|
||||||
|
<Button
|
||||||
|
component={NextLinkComposed}
|
||||||
|
to={{ pathname: "/dashboard/navgan/followUp-loan" }}
|
||||||
|
variant={"contained"}
|
||||||
|
size={"large"}
|
||||||
|
>
|
||||||
|
{t("LoanFollowUp.loan_follow_up_page")}
|
||||||
|
</Button>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
</CenterLayout>
|
||||||
|
</FullPageLayout>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default FirstComponent;
|
export default FirstComponent;
|
||||||
Reference in New Issue
Block a user