blob: a05d180dcf56a0a7eecdb56f731bcdf152302634 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
import React from 'react';
import { ContentSection } from 'react-benzin';
import { Grid, Link } from '@material-ui/core';
import EventCard from '../../components/EventCard/EventCard';
import { useEvents } from '../../hooks/APIClient';
const BsuFantomSection: React.FC = () => {
const { data: events, mutate } = useEvents();
return (
<ContentSection sectionName="bsu-fantom" level={1}>
<p>
Schedule your offline <Link href="https://edufpmi.bsu.by">EDUFPMI</Link> conference attendance
</p>
<ContentSection sectionName="Upcoming events" level={2}>
<Grid container spacing={2}>
{events?.map((event, index) => (
<Grid item xs={4}>
<EventCard event={event} mutate={mutate} />
</Grid>
))}
</Grid>
</ContentSection>
</ContentSection>
);
};
export default BsuFantomSection;
|