LFFE-29 structured table of data
This commit is contained in:
@@ -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={{
|
||||
|
||||
Reference in New Issue
Block a user