LFFE-29 structured table of data

This commit is contained in:
2023-11-28 16:36:58 +03:30
parent a5d8c7bb05
commit 1b56aff3a6
3 changed files with 19 additions and 5 deletions

View File

@@ -22,11 +22,21 @@ const TableContent = ({rowId}) => {
return (
<Box>
{error ? (<Typography>{t("LoanHistory.Table_history_error")}</Typography>) :
{error ? (<Typography sx={{
padding: 2,
display: "flex",
alignItems: "center",
justifyContent: "center"
}}>{t("LoanHistory.Table_history_error")}</Typography>) :
(isLoading ? (<LinearProgress sx={{width: "100%"}}/>) : (
history_details.latest_histories.length === 0 ? (
<Typography
sx={{padding: 2}}
sx={{
padding: 2,
display: "flex",
alignItems: "center",
justifyContent: "center"
}}
variant={'h6'}>{t("LoanHistory.empty_history_detail")}</Typography>
) : (
<Paper elevation={0} sx={{