diff --git a/src/components/MatchItem.tsx b/src/components/MatchItem.tsx index 459d3c4..b8d99a3 100644 --- a/src/components/MatchItem.tsx +++ b/src/components/MatchItem.tsx @@ -1,27 +1,57 @@ import React, { FC } from "react"; import Moment from "react-moment"; import { Link } from "react-router-dom"; +import { makeStyles } from "@material-ui/core/styles"; +import Card from "@material-ui/core/Card"; +import CardActionArea from "@material-ui/core/CardActionArea"; +import CardActions from "@material-ui/core/CardActions"; +import CardContent from "@material-ui/core/CardContent"; +import CardMedia from "@material-ui/core/CardMedia"; +import Button from "@material-ui/core/Button"; +import Typography from "@material-ui/core/Typography"; import IGame from "../types/Game"; +const useStyles = makeStyles({ + root: { + maxWidth: 345, + marginTop: "16px", + }, + media: { + height: 140, + }, +}); + const MatchItem: FC = ({ title, id, thumbnail, date, competition: { name }, -}) => ( -
-

- {title} -

-

{name}

-

- {date} -

- {title} - {/*
*/} -
-); +}) => { + const classes = useStyles(); + return ( + + + + + + {title} + + + {name} +
+ {date} +
+
+
+ + + +
+ ); +}; export default MatchItem; diff --git a/src/components/MatchList.tsx b/src/components/MatchList.tsx index 78055d6..4656010 100644 --- a/src/components/MatchList.tsx +++ b/src/components/MatchList.tsx @@ -1,5 +1,4 @@ import React, { FC, useState, useEffect } from "react"; - import { Container } from "@material-ui/core"; import Loader from "./Loader";