From 3137c48e52f27ed8c500b7753236bd22303a1080 Mon Sep 17 00:00:00 2001 From: Leon Xu Date: Sat, 3 Sep 2022 12:51:30 -0700 Subject: [PATCH] doc: create RatedCards function --- src/components/RatedCards/RatedCards.jsx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/components/RatedCards/RatedCards.jsx b/src/components/RatedCards/RatedCards.jsx index e69de29..30d4c76 100644 --- a/src/components/RatedCards/RatedCards.jsx +++ b/src/components/RatedCards/RatedCards.jsx @@ -0,0 +1,21 @@ +import { Typography, Box } from '@mui/material'; + +import useStyles from './styles'; +import { Movie } from '../index'; + +function RatedCards({ title, movies }) { + const classes = useStyles(); + + return ( + + {title} + + {movies?.results.map((movie, i) => ( + + ))} + + + ); +} + +export default RatedCards;