From 596c180d9dd0df6fa3426f7fe767819b4c27f5b3 Mon Sep 17 00:00:00 2001 From: datalore Date: Fri, 3 Nov 2023 12:19:27 +0100 Subject: [PATCH] Added flex to later implement customization controls --- src/app/components/bingo.tsx | 2 +- src/app/components/bingocontroller.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/components/bingo.tsx b/src/app/components/bingo.tsx index 1e55923..29729c8 100644 --- a/src/app/components/bingo.tsx +++ b/src/app/components/bingo.tsx @@ -12,7 +12,7 @@ export default function Bingo({size, items}: Props){ rows[i] = items.slice(i * size, (i + 1) * size); } return( - +
{rows.map((item, index) => )} diff --git a/src/app/components/bingocontroller.tsx b/src/app/components/bingocontroller.tsx index a01f36c..a1796c9 100644 --- a/src/app/components/bingocontroller.tsx +++ b/src/app/components/bingocontroller.tsx @@ -5,11 +5,13 @@ import Bingo from './bingo.tsx' export default function BingoController(){ const [size, setSize] = React.useState(5); - const [items, setItems] = React.useState(["Cloud", "Cyber", "Distruptive Technology", "AI", "Metaverse", "Gamification", "Web 3.0", "Industry 4.0", "Internet of Things", "Multiexperience", "Big Data", "Crypto", "[Insert bullshit here] as a service"]); + const [items, setItems] = React.useState(["Cloud", "Cyber", "Distruptive Technology", "AI", "Metaverse", "Gamification", "Web 2.0/3.0", "Industry 4.0", "Internet of Things", "Multiexperience", "Big Data", "Crypto", "[Insert bullshit here] as a service", "Emerging Market", "Streamline"]); const sizeError = ((items.length % size) != 0); return( <> +
+
{sizeError &&
Warning: Mismatch between item count and size
} );