From a9f5c715013a45041fb1bc4df977493d41288c39 Mon Sep 17 00:00:00 2001 From: NilsUeter Date: Sun, 7 May 2023 21:35:00 +0200 Subject: [PATCH] Add checkbox for one datacard per page --- src/App.jsx | 15 ++++++++++++++- src/Roster.jsx | 24 +++++++++++++++--------- src/index.css | 12 ++++++++---- 3 files changed, 37 insertions(+), 14 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 822dde9..27acae5 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -8,6 +8,7 @@ import Demo1 from "./assets/Demo1.png"; function App() { const [error, setError] = useState(); const [roster, setRoster] = useState(); + const [onePerPage, setOnePerPage] = useState(false); const uploadRef = useRef(); async function handleFileSelect(event) { const files = event?.target?.files; @@ -129,10 +130,22 @@ function App() { Print roster +
+ +
{error}
- +