diff --git a/package.json b/package.json index 8faf16f..c12f719 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "prepare": "husky install" }, "dependencies": { + "@chakra-ui/icons": "^1.1.7", "@chakra-ui/react": "^1.8.8", "@emotion/react": "^11.9.0", "@emotion/styled": "^11.8.1", diff --git a/src/Components/Cards/Team/index.tsx b/src/Components/Cards/Team/index.tsx index 4947527..f830cff 100644 --- a/src/Components/Cards/Team/index.tsx +++ b/src/Components/Cards/Team/index.tsx @@ -24,7 +24,9 @@ const CardTeam: VFC = ({ players, index }) => { Team {index + 1} {players.map((player, index) => ( - {player} + + {player} + ))} ); diff --git a/src/Components/Layout/index.tsx b/src/Components/Layout/index.tsx index e68c3c9..e7a9c35 100644 --- a/src/Components/Layout/index.tsx +++ b/src/Components/Layout/index.tsx @@ -1,4 +1,5 @@ -import { Box, Flex } from "@chakra-ui/react"; +import { Box, chakra, Flex } from "@chakra-ui/react"; +import { isValidMotionProp, motion } from "framer-motion"; import type { ReactNode } from "react"; import Footer from "./Footer"; @@ -9,15 +10,25 @@ type LayoutProps = { children: ReactNode; }; +const ContentContainer = chakra(motion.main, { + shouldForwardProp: (prop) => isValidMotionProp(prop) || prop === "children", +}); + const Layout = ({ children }: LayoutProps) => { return (
- + {children} - +