[WIP] Claims

This commit is contained in:
R
2022-11-25 05:14:40 +07:00
parent d5b43d9896
commit b3eb9b5f9d
18 changed files with 1012 additions and 376 deletions

View File

@@ -0,0 +1,28 @@
import { Card, Paper, TableContainer } from "@mui/material";
import { LaravelPaginatedData } from "../@types/paginated-data";
import BasePagination from "./BasePagination";
type LaravelTableProps = {
isLoading: boolean;
lastRequest: number;
data: LaravelPaginatedData;
handlePageChange: void;
TableContent: any;
};
function LaravelTable(props: LaravelTableProps) {
return (
<Card>
<TableContainer component={Paper}>
{ props.TableContent }
</TableContainer>
{ !props.isLoading ?
(<BasePagination paginationData={props.data} onPageChange={props.handlePageChange}/>) :
(<div></div>)
}
</Card>
)
}
export default LaravelTable