fix dashboard

This commit is contained in:
Muhammad Fajar
2022-12-05 10:23:24 +07:00
parent 86076ff1d7
commit f18e7126d3
3 changed files with 97 additions and 403 deletions

View File

@@ -23,23 +23,6 @@ const itemList = [
export default function Dashboard() {
const { themeStretch } = useSettings();
// const [corporate, setCorporate] = useState({});
// const loadSomething = () => {
// axios
// .get('dashboard')
// .then((res) => {
// setCorporate(res.data.corporate);
// })
// .catch((err) => {
// alert('Opps, Something Went Wrong when collecting dashboard data');
// });
// };
// useEffect(() => {
// loadSomething();
// }, []);
return (
<Page title="Dashboard">
<Container maxWidth={themeStretch ? false : 'xl'}>
@@ -48,10 +31,10 @@ export default function Dashboard() {
</Typography>
<Grid container spacing={2}>
<Grid item xs={6} lg={6} md={12}>
<Grid item xs={12} lg={6} md={12}>
<CardNotification data={itemList} />
</Grid>
<Grid item xs={6} lg={6} md={12}>
<Grid item xs={12} lg={6} md={12}>
<CardBalance />
</Grid>
<Grid item xs={12} lg={12} md={12}>