Merge branch 'feature/TF-85_followUp_loan_navgan' into 'develop'

TF-85 Implemention Follow Up Loan Page (Navgan)

See merge request witel3/loan-facilities-user!26
This commit is contained in:
AmirHossein Mahmoodi
2023-09-03 13:09:02 +00:00
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import {Card, CardContent, CardHeader, Grid, Typography} from "@mui/material";
import SellIcon from '@mui/icons-material/Sell';
import {useTranslations} from "next-intl";
const RequestCard = ({item}) => {
const t = useTranslations();
return (
<Grid item xs={12} md={6} lg={4}>
<Card sx={{
width: "100%",
boxShadow: "rgba(0, 0, 0, 0.15) 0px 5px 15px 0px"
}}>
<CardHeader
avatar={<SellIcon color="primary"/>}
title={`${t("LoanFollowUp.request_number")}: (${item.id})`}
subheader={item.latest_history_created_at}
/>
<CardContent sx={{pt: 0}}>
<Typography variant="button">
{item.loan_state}
</Typography>
</CardContent>
</Card>
</Grid>
);
};
export default RequestCard;

View File

@@ -6,6 +6,7 @@ export const LOGIN = BASE_URL + "/login";
export const SEND_OTP_TOKEN = BASE_URL + "/otp";
export const REGISTER = BASE_URL + "/register";
export const USER_INFO = BASE_URL + "/profile/info";
export const SHOW_LOAN_REQUEST_NAVGAN = BASE_URL + "/navgan/loan/index";
export const SEND_LOAN_REQUEST_NAVGAN = BASE_URL + "/navgan/loan/store";
export const SHOW_LOAN_REQUEST_NAVGAN = BASE_URL + "/navgan/loan/index"
export const SHOW_LOAN_REQUEST_WELFARE = BASE_URL + "/refahi/loan/index";