Skip to content

Commit

Permalink
feat: add circular progress to schedule page
Browse files Browse the repository at this point in the history
  • Loading branch information
KimiaMontazeri committed Nov 27, 2023
1 parent 2de2f9e commit 84e69cb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion frontend/src/pages/schedule/SchedulePage.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
import useSchedulePage from './useSchedulePage.js';
import { CircularProgress } from '@mui/material';
import ObjListTable from '../../components/table/ObjListTable.jsx';
import useSchedulePage from './useSchedulePage.js';
import './SchedulePage.css';

export default function SchedulePage() {
const { tableWorkshopsData, tablePresentationsData } = useSchedulePage();

if (!tableWorkshopsData || !tablePresentationsData) {
return (
<div id="table-container">
<CircularProgress />
</div>
);
}

return (
<div id="table-container">
<ObjListTable data={tableWorkshopsData} title={'Workshops'} />
Expand Down

0 comments on commit 84e69cb

Please sign in to comment.