From 55b5f2b4d60a0de8df86fa77eff07672f1c000f1 Mon Sep 17 00:00:00 2001 From: alanc Date: Sun, 15 Sep 2024 20:45:38 -0400 Subject: [PATCH] task finished --- src/components/BoardSwitcher.jsx | 20 +++++++++++++++++--- src/main.jsx | 2 +- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/components/BoardSwitcher.jsx b/src/components/BoardSwitcher.jsx index e99793a..a89d7e0 100644 --- a/src/components/BoardSwitcher.jsx +++ b/src/components/BoardSwitcher.jsx @@ -1,4 +1,6 @@ -import React from "react"; + +import React, {useState} from "react"; + function Board(props) { let className = "board"; @@ -10,16 +12,28 @@ function Board(props) { } function BoardSwitcher(props) { + const [numSelected, SetNumSelected] = useState(0); let boards = []; + + const handleClick = (event) =>{ + if(numSelected); } + return (
{boards}
- +
); } diff --git a/src/main.jsx b/src/main.jsx index 782f402..316ad56 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -6,6 +6,6 @@ import "./index.css"; const root = ReactDOM.createRoot(document.getElementById("root")); root.render( - + );