diff --git a/package-lock.json b/package-lock.json index f42ce91..ddbd1e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "buzzword-bingo", - "version": "0.3.1", + "version": "0.3.2", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index 42beef3..bb27581 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "buzzword-bingo", - "version": "0.3.1", + "version": "0.3.2", "private": true, "scripts": { "dev": "next dev", diff --git a/src/app/components/bingocontroller.tsx b/src/app/components/bingocontroller.tsx index 5461e46..18969e1 100644 --- a/src/app/components/bingocontroller.tsx +++ b/src/app/components/bingocontroller.tsx @@ -14,9 +14,9 @@ function FisherYatesShuffle(array:string[]):string[]{ return array; } -export default function BingoController(){ +export default function BingoController({buzzwords} : {buzzwords: string[]}){ const [size, setSize] = React.useState(5); - const buzzwords = ["Cloud", "Cyber-[Something]", "Distrupt[ive]", "AI", "Meta [Something]", "Gamification", "Web 2.0/3.0", "Industry 4.0", "Internet of Things", "Multiexperience", "Big Data", "Crypto", "[Something] as a service", "Emerging [Something]", "Streamline", "Ecosystem", "Leverage", "Outside the Box", "Pivot", "Strategic", "Agile", "Smart Tech", "Data Warehouse", "Actionable Insights", "Holistic Approach", "Digital Transformation", "Growth Hacking"]; + if(buzzwords == undefined || buzzwords.length < 1) buzzwords = ["Cloud", "Cyber-[Something]", "Distrupt[ive]", "AI", "Meta [Something]", "Gamification", "Web 2.0/3.0", "Industry 4.0", "Internet of Things", "Multiexperience", "Big Data", "Crypto", "[Something] as a service", "Emerging [Something]", "Streamline", "Ecosystem", "Leverage", "Outside the Box", "Pivot", "Strategic", "Agile", "Smart Tech", "Data Warehouse", "Actionable Insights", "Holistic Approach", "Digital Transformation", "Growth Hacking"]; const [items, setItems] = React.useState(buzzwords); const sizeError = (items.length < size); return( diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 1af72a1..c0d80b7 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,4 +1,5 @@ import type { Metadata } from 'next' +import ThemeSwitcher from './components/themeswitcher' import './globals.css' export const metadata: Metadata = { @@ -7,13 +8,35 @@ export const metadata: Metadata = { } export default function RootLayout({ - children, + children, }: { - children: React.ReactNode + children: React.ReactNode }) { - return ( - - {children} - - ) + return ( + + +
+
+ Buzzword Bingov{process.env.npm_package_version} +
+
+ +
+
+
+ {children} +
+ + + ); } diff --git a/src/app/page.tsx b/src/app/page.tsx index 6413f75..9630b7c 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -3,28 +3,6 @@ import ThemeSwitcher from './components/themeswitcher' export default function Home(){ return( - <> -
-
- Buzzword Bingov{process.env.npm_package_version} -
-
- -
-
-
- -
- + ); }