diff options
author | eug-vs <eug-vs@keemail.me> | 2020-11-15 00:16:27 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-11-15 00:17:04 +0300 |
commit | d422fc48943cf01891768c34a10f972637e1319b (patch) | |
tree | d5d59c0083f45ae09b5ad51c116e6f878805e7d5 /src/containers/BsuFantomSection/BsuFantomSection.tsx | |
parent | f96e6174fe90f3d2b1e3016861017cfcc25a6ddc (diff) | |
download | famcs-kit-d422fc48943cf01891768c34a10f972637e1319b.tar.gz |
feat: add EventCard
Diffstat (limited to 'src/containers/BsuFantomSection/BsuFantomSection.tsx')
-rw-r--r-- | src/containers/BsuFantomSection/BsuFantomSection.tsx | 10 |
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> ); }; |