File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -60,21 +60,24 @@ function App() {
6060 LineWidth,
6161 } ) ;
6262 const generateAuldosBroder = ( ) => {
63- const l = initLabyrinth ( height , width ) ;
64- const newCells = auldosBroderGenerator ( l ) ;
65- setCells ( newCells ) ;
66- }
63+ const l = initLabyrinth ( height , width ) ;
64+ const newCells = auldosBroderGenerator ( l ) ;
65+ setCells ( newCells ) ;
66+ } ;
6767 return (
6868 < >
6969 < div className = { `App ${ Classes . DARK } ` } >
7070 < Navbar >
7171 < Navbar . Group align = { Alignment . LEFT } >
7272 < Navbar . Heading > Maze builder</ Navbar . Heading >
73+ < Button onClick = { generateAuldosBroder } icon = "function" >
74+ Aldous-Broder algorythm
75+ </ Button >
7376 </ Navbar . Group >
7477 < Navbar . Group align = { Alignment . RIGHT } >
7578 < Button icon = "print" minimal = { true } onClick = { print } />
7679 < Navbar . Divider />
77- < Button icon = "menu " minimal = { true } onClick = { toggleHandler } />
80+ < Button icon = "cog " minimal = { true } onClick = { toggleHandler } />
7881 </ Navbar . Group >
7982 </ Navbar >
8083 < div className = "App-body" >
@@ -115,9 +118,6 @@ function App() {
115118 </ FormGroup >
116119 </ div >
117120 </ Card >
118- < Button onClick = { generateAuldosBroder } icon = "function" >
119- Aldous-Broder algorythm
120- </ Button >
121121 </ Drawer >
122122 </ >
123123 ) ;
You can’t perform that action at this time.
0 commit comments