Skip to content

Commit 855573a

Browse files
committed
UI layout improved
1 parent 19a0bdd commit 855573a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/App.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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
);

0 commit comments

Comments
 (0)