From 1d35c5382009d6a8405db18f725355b706a79d8b Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi <256895@studenti.unimore.it> Date: Wed, 21 Apr 2021 00:35:44 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20base=20Box=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/frontend/src/App.js | 12 ++++++++++-- code/frontend/src/components/Box.js | 15 +++++++++++++++ code/frontend/src/components/Box.module.css | 7 +++++++ 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 code/frontend/src/components/Box.js create mode 100644 code/frontend/src/components/Box.module.css diff --git a/code/frontend/src/App.js b/code/frontend/src/App.js index 9fda99e..593efa9 100644 --- a/code/frontend/src/App.js +++ b/code/frontend/src/App.js @@ -1,14 +1,22 @@ import {useState} from "react" import classNames from "classnames" import Style from "./App.module.css" +import Box from "./components/Box" export default function App() { - const [theme, setTheme] = useState("theme-dark"); + const [theme, ] = useState("theme-dark"); return (