aboutsummaryrefslogtreecommitdiff
path: root/src/containers
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers')
-rw-r--r--src/containers/BsuFantomSection/BsuFantomSection.tsx10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/containers/BsuFantomSection/BsuFantomSection.tsx b/src/containers/BsuFantomSection/BsuFantomSection.tsx
index 119b2ae..90632d7 100644
--- a/src/containers/BsuFantomSection/BsuFantomSection.tsx
+++ b/src/containers/BsuFantomSection/BsuFantomSection.tsx
@@ -1,12 +1,20 @@
import React from 'react';
import { ContentSection } from 'react-benzin';
import { Link } from '@material-ui/core';
+import EventCard from '../../components/EventCard/EventCard';
+import { useEvents } from '../../hooks/APIClient';
const BsuFantomSection: React.FC = () => {
+ const { data: events } = useEvents();
return (
<ContentSection sectionName="bsu-fantom" level={1}>
- Schedule your offline <Link href="https://edufpmi.bsu.by">EDUFPMI</Link> conference attendance
+ <p>
+ Schedule your offline <Link href="https://edufpmi.bsu.by">EDUFPMI</Link> conference attendance
+ </p>
+ <ContentSection sectionName="Upcoming events" level={2}>
+ {events?.map(event => <EventCard event={event} />)}
+ </ContentSection>
</ContentSection>
);
};