aboutsummaryrefslogtreecommitdiff
path: root/src/containers
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-11-15 01:38:57 +0300
committereug-vs <eug-vs@keemail.me>2020-11-15 01:38:57 +0300
commit4497d90f23de6abf011a676d0bba745f0e70e7d7 (patch)
treee1dfc066fb8d737d73d778c625355a4021d428a8 /src/containers
parentb61eba6f01898cd3c506976c17bb23d06d648f04 (diff)
downloadfamcs-kit-4497d90f23de6abf011a676d0bba745f0e70e7d7.tar.gz
feat: join the event by button
Diffstat (limited to 'src/containers')
-rw-r--r--src/containers/BsuFantomSection/BsuFantomSection.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/containers/BsuFantomSection/BsuFantomSection.tsx b/src/containers/BsuFantomSection/BsuFantomSection.tsx
index 527c41b..a05d180 100644
--- a/src/containers/BsuFantomSection/BsuFantomSection.tsx
+++ b/src/containers/BsuFantomSection/BsuFantomSection.tsx
@@ -4,8 +4,9 @@ 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();
+ const { data: events, mutate } = useEvents();
return (
<ContentSection sectionName="bsu-fantom" level={1}>
@@ -14,9 +15,9 @@ const BsuFantomSection: React.FC = () => {
</p>
<ContentSection sectionName="Upcoming events" level={2}>
<Grid container spacing={2}>
- {events?.map(event => (
+ {events?.map((event, index) => (
<Grid item xs={4}>
- <EventCard event={event} />
+ <EventCard event={event} mutate={mutate} />
</Grid>
))}
</Grid>