update requestCard
This commit is contained in:
@@ -3,7 +3,6 @@ import {useTranslations} from "next-intl";
|
||||
import moment from "jalali-moment";
|
||||
import {LinkRouting} from "@witel/webapp-builder";
|
||||
import AccessTimeFilledIcon from '@mui/icons-material/AccessTimeFilled';
|
||||
import CheckCircleIcon from '@mui/icons-material/CheckCircle';
|
||||
import CancelIcon from '@mui/icons-material/Cancel';
|
||||
|
||||
const RequestCard = ({item}) => {
|
||||
@@ -44,7 +43,7 @@ const RequestCard = ({item}) => {
|
||||
{item.state_id >= 1 && item.state_id <= 6 &&
|
||||
<AccessTimeFilledIcon sx={{verticalAlign: 'middle', marginLeft: '4px', color: '#48a4df'}}/>}
|
||||
{item.state_id === 8 &&
|
||||
<CheckCircleIcon sx={{verticalAlign: 'middle', marginLeft: '4px', color: 'green'}}/>}
|
||||
<AccessTimeFilledIcon sx={{verticalAlign: 'middle', marginLeft: '4px', color: '#48a4df'}}/>}
|
||||
{item.state_id === 7 &&
|
||||
<CancelIcon sx={{verticalAlign: 'middle', marginLeft: '4px', color: 'red'}}/>}
|
||||
</Typography>
|
||||
@@ -59,8 +58,30 @@ const RequestCard = ({item}) => {
|
||||
{`${t("LoanFollowUp.loan_description")}: ${item.latest_history.expert_description}`}
|
||||
</Typography>
|
||||
)}
|
||||
{item.bank_status == 0 && (
|
||||
<Typography variant="body1" sx={{
|
||||
lineHeight: 2,
|
||||
paddingLeft: '20px',
|
||||
wordWrap: 'break-word',
|
||||
overflowWrap: 'break-word',
|
||||
wordBreak: 'break-word'
|
||||
}}>
|
||||
{`${t("LoanFollowUp.loan_description")}: درخواست وام توسط بانک تایید نشد (نیاز به اصلاح اطلاعات) `}
|
||||
</Typography>
|
||||
)}
|
||||
{item.bank_state == 8 && (
|
||||
<Typography variant="body1" sx={{
|
||||
lineHeight: 2,
|
||||
paddingLeft: '20px',
|
||||
wordWrap: 'break-word',
|
||||
overflowWrap: 'break-word',
|
||||
wordBreak: 'break-word'
|
||||
}}>
|
||||
{`${t("LoanFollowUp.loan_description")}: عدم تایید درخواست وام توسط بانک `}
|
||||
</Typography>
|
||||
)}
|
||||
{item.state_id === 8 && item.bank_status == 0 && (
|
||||
<Button variant="contained" color="primary" sx={{alignSelf: 'flex-end'}}>
|
||||
<Button variant="contained" color="primary" sx={{alignSelf: 'flex-end', mt: 2}}>
|
||||
<LinkRouting underline="none" color="inherit" href={`/dashboard/navgan/${item.id}/show`}>
|
||||
{t("LoanFollowUp.loan_details")}
|
||||
</LinkRouting>
|
||||
|
||||
Reference in New Issue
Block a user