File tree Expand file tree Collapse file tree 5 files changed +9
-17
lines changed
Expand file tree Collapse file tree 5 files changed +9
-17
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 11import React , { useState } from 'react' ;
2+ import "./AppNavbar.scss" ;
23import {
34 Collapse ,
45 Navbar ,
@@ -41,7 +42,6 @@ const AppNavbar = (props) => {
4142 < DropdownMenu right >
4243 < DropdownItem >
4344 < Button onClick = { ( ) => { props . handleDijkstra ( ) ; props . handleVisualization ( ) } } > Dijkstra</ Button >
44- { /* <Button onClick={ props.handleDijkstra}>Dijkstra</Button> */ }
4545 </ DropdownItem >
4646 < DropdownItem >
4747 < Button onClick = { ( ) => { props . handleDFS ( ) ; props . handleVisualization ( ) } } > DFS</ Button >
@@ -72,7 +72,7 @@ const AppNavbar = (props) => {
7272 < NavbarText >
7373 < ProgressBar visitedNodes = { props . visitedNodes } shortestNodes = { props . shortestNodes } />
7474 </ NavbarText >
75- < NavbarText >
75+ < NavbarText className = "clear-functions" >
7676 < ButtonGroup >
7777 < Button id = { "Tooltip-" + 0 } onClick = { props . handleClearPath } > Clear Path</ Button >
7878 < Button id = { "Tooltip-" + 1 } onClick = { props . handleClearGrid } > Clear Grid</ Button >
Original file line number Diff line number Diff line change 1+ .clear-functions {
2+ margin-right : 10px ;
3+ }
Original file line number Diff line number Diff line change @@ -18,15 +18,4 @@ const ProgressBar = (props) => {
1818 ) ;
1919}
2020
21- export default ProgressBar ;
22-
23- /*
24- <NavbarText>
25- visited nodes: {props.visitedNodes}
26- <Progress value={props.visitedNodes/800} color="danger" />
27- </NavbarText>
28- <NavbarText>
29- shortes path: {props.shortestNodes}
30- <Progress value={props.shortestNodes/800} color="success" />
31- </NavbarText>
32- */
21+ export default ProgressBar ;
Original file line number Diff line number Diff line change 11.visited-nodes-bar {
22 display : inline-block ;
3- margin-right : 5 px ;
3+ margin-right : 10 px ;
44}
55
66.shortest-nodes-bar {
77 display : inline-block ;
8- margin-right : 5 px ;
8+ margin-right : 15 px ;
99}
You can’t perform that action at this time.
0 commit comments