style: layout changes

This commit is contained in:
cv
2021-05-06 12:06:04 +02:00
parent 4161dd29c8
commit f3924d4beb
7 changed files with 172 additions and 52 deletions
@@ -12,8 +12,8 @@ import {
import EventList from './EventList';
import EventListMenu from '../../menu/EventListMenu.jsx';
import { showErrorToast } from '../../../common/helpers/toastManager';
import { Skeleton } from '@chakra-ui/skeleton';
import { useFetch } from '../../../app/hooks/useFetch.js';
import EventListSkeleton from '../skeletons/EventListSkeleton.jsx';
export default function EventListWrapper() {
const queryClient = useQueryClient();
@@ -254,9 +254,7 @@ export default function EventListWrapper() {
{status === 'success' ? (
<EventList events={data} eventsHandler={eventsHandler} />
) : (
<div className={style.eventContainer}>
<Skeleton height='50vh' />
</div>
<EventListSkeleton />
)}
</>
);