From b61eba6f01898cd3c506976c17bb23d06d648f04 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Sun, 15 Nov 2020 00:22:16 +0300
Subject: feat: display Events in a grid

---
 src/components/EventCard/EventCard.tsx | 29 +++++++++++------------------
 1 file changed, 11 insertions(+), 18 deletions(-)

(limited to 'src/components/EventCard/EventCard.tsx')

diff --git a/src/components/EventCard/EventCard.tsx b/src/components/EventCard/EventCard.tsx
index 88984ff..192d0b3 100644
--- a/src/components/EventCard/EventCard.tsx
+++ b/src/components/EventCard/EventCard.tsx
@@ -1,6 +1,5 @@
 import React from 'react';
-import { makeStyles } from '@material-ui/core/styles';
-import { 
+import {
   Card,
   CardHeader,
   CardContent,
@@ -13,25 +12,19 @@ interface PropTypes {
   event: Event;
 }
 
-const useStyles = makeStyles(theme => ({
-  root: {
-    margin: theme.spacing(1),
-    maxWidth: theme.spacing(60)
-  }
-}));
-
 const EventCard: React.FC<PropTypes> = ({ event }) => {
-  const classes = useStyles();
-  const { data: { 
-    name,
-    date,
-    participants,
-    conferenceId,
-    attendanceId
-  }} = event;
+  const {
+    data: {
+      name,
+      date,
+      participants,
+      conferenceId,
+      attendanceId
+    }
+  } = event;
 
   return (
-    <Card variant="outlined" className={classes.root}>
+    <Card variant="outlined">
       <CardHeader title={name || 'Event'} subheader={date}  />
       <CardContent>
         {conferenceId && <div> ConferenceID: {conferenceId} </div>}
-- 
cgit v1.2.3

