Skip to content

Commit

Permalink
✨ add new feedback when there are no upcoming events
Browse files Browse the repository at this point in the history
  • Loading branch information
FredrikMorstad committed Nov 23, 2023
1 parent 40b7e73 commit 4fe3090
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/pages/homepage/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ import EventPreview from 'components/molecules/event/eventPreview/EventPreview';
import useUpcomingEvents from 'hooks/useEvents';
import LoadingWrapper from 'components/atoms/loadingWrapper/LoadingWrapper';
import { useMobileScreen } from 'hooks/useMobileScreen';
import NoUpcomingEvents from 'components/molecules/homePage/noUpcomingEventResponse/evnetResponse';

const RootPage = () => {
const { events } = useUpcomingEvents();
useTitle('Tromsøstudentenes-Dataforening');
const { events } = useUpcomingEvents();
const isMobile = useMobileScreen();

return (
<div className={styles.root}>
<HomeHeader />
Expand Down Expand Up @@ -40,9 +42,7 @@ const RootPage = () => {
</Carousel>
</div>
) : (
<h3 style={{ minHeight: '45vh' }}>
Ingen kommende arrangementer{' '}
</h3>
<NoUpcomingEvents />
)}
</LoadingWrapper>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/components/pages/homepage/homePage.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
.eventsWrapper {
display: flex;
justify-content: center;
text-align: center;
width: 75vw;
}

Expand Down

0 comments on commit 4fe3090

Please sign in to comment.