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
} );