Add Dummy Notification Data
This commit is contained in:
@@ -28,7 +28,7 @@ const RootNotificationStyle = styled(Card)(({ theme }) => ({
|
||||
padding: '1rem 0.5rem',
|
||||
color: 'black',
|
||||
backgroundColor: theme.palette.grey[200],
|
||||
maxHeight: '240px',
|
||||
// maxHeight: '240px',
|
||||
}));
|
||||
|
||||
const ItemNotificationStyle = styled(Card)(({ theme }) => ({
|
||||
@@ -94,7 +94,7 @@ export default function CardNotification({ data }: NotificationProps) {
|
||||
</Button>
|
||||
</Stack>
|
||||
|
||||
<ItemNotificationStyle sx={{ marginTop: 2, overflowY: 'auto', maxHeight: '154px' }}>
|
||||
<ItemNotificationStyle sx={{ marginTop: 2, overflowY: 'auto', maxHeight: '180px' }}>
|
||||
{(data && data.length)
|
||||
? data.map(({ info, date, time }, key) => (
|
||||
<div key={key}>
|
||||
|
||||
@@ -176,6 +176,7 @@ function EnhancedTableHead({ order, orderBy, onRequestSort }: EnhancedTableProps
|
||||
}
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
// TODO Don't use emit
|
||||
export default function TableList(props: any) {
|
||||
const [dataTable, setDataTable] = useState([]);
|
||||
const [paginationTable, setPaginationTable] = useState<PaginationTableProps>({
|
||||
@@ -306,6 +307,9 @@ export default function TableList(props: any) {
|
||||
setPaginationTable(response.data.data);
|
||||
setRowsPerPage(response.data.data.per_page);
|
||||
setIsLoading(false);
|
||||
|
||||
// TODO Remove This
|
||||
props.dataLoaded(response.data.data.data);
|
||||
})();
|
||||
}, [appliedParams, searchParams, order, orderBy, setSearchParams]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user