aboutsummaryrefslogtreecommitdiff
path: root/src/containers/BsuFantomSection/BsuFantomSection.tsx
blob: 527c41bc80d91b62f0ff364ce3582b70596add52 (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
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 } = 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 => (
            <Grid item xs={4}>
              <EventCard event={event} />
            </Grid>
          ))}
        </Grid>
      </ContentSection>
    </ContentSection>
  );
};

export default BsuFantomSection;