From d422fc48943cf01891768c34a10f972637e1319b Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Sun, 15 Nov 2020 00:16:27 +0300
Subject: feat: add EventCard

---
 src/containers/BsuFantomSection/BsuFantomSection.tsx | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

(limited to 'src/containers/BsuFantomSection/BsuFantomSection.tsx')

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>
   );
 };
-- 
cgit v1.2.3

