diff --git a/src/js/lib/application.tsx b/src/js/lib/application.tsx index 848e78b..7e9d969 100644 --- a/src/js/lib/application.tsx +++ b/src/js/lib/application.tsx @@ -29,18 +29,31 @@ export function Interface() { ) - const handleSeedClick = () => { + const handleInitClick = () => { if (wasmModule === null) { console.error("wasm not yet loaded"); } else { galaxyFrontend = new galaxy.Frontend(galaxySize); + } + }; + + const initButton = ( + + ) + + const handleSeedClick = () => { + if (wasmModule === null) { + console.error("wasm not yet loaded"); + } else { galaxyFrontend.seed(); } }; const seedButton = ( ) @@ -60,6 +73,7 @@ export function Interface() {