Skip to content

Commit 23b01fd

Browse files
committed
Merge branches 'main' and 'functional_board' of https://github.com/https-sam/algorithm-visualizer
2 parents 92ed272 + 7b0ab34 commit 23b01fd

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ npm-debug.log*
2222
yarn-debug.log*
2323
yarn-error.log*
2424

25-
.idea
25+
.idea
26+
/package-lock.json

src/App.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import './App.css';
2-
import React from 'react';
3-
import Display from './components/Algorithms/Display';
4-
import AppRouter from './AppRouter';
2+
import React from 'react';
3+
import Display from './components/BoardCanvas/Display';
4+
import AppRouter from './AppRouter';
55
import Navigation from './components/Page/partial/Navbar/Navigation';
66

77

src/AppRouter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import {
77
import SplashScreen from './components/Page/Splash/SplashScreen';
88
import MainSortingCanvas from './components/Canvas/MainSortingCanvas';
99
import AboutScreen from './components/Page/About/AboutScreen';
10-
import ContactScreen from './components/Page/Contact/ContactScreen';
11-
import Display from './components/Algorithms/Display';
10+
import ContactScreen from './components/Page/Contact/ContactScreen';
11+
import Display from './components/BoardCanvas/Display';
1212

1313

1414

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React, {Component, useState, useRef, useEffect} from 'react';
2-
import Board from '../BoardCanvas/Board';
3-
import Navigation from '../Page/partial/Navbar/Navigation';
2+
import Board from './Board';
3+
import Navigation from '../Page/partial/Navbar/Navigation';
44
import './display.css';
5-
import {useBinaryTreeCreation} from './Maze/Generation/BinaryTreeCreation';
6-
import {Strategy} from '../Strategy/Strategy';
5+
// import {useBinaryTreeCreation} from '../Algorithms/Maze/Generation/BinaryTreeCreation';
6+
import {Strategy} from '../Strategy/Strategy';
77

88
/*
99

src/components/BoardCanvas/Layouts.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,17 @@ import {_FindCell} from '../Algorithms/Maze/Generation/Tools';
1818
*/
1919
export const useLayoutHook = ({board, layoutType, mazeType}) => {
2020
useEffect(() => {
21-
if (mazeType === "none") {
22-
switch (layoutType) {
23-
case 'circular':
24-
circularLayout(board);
25-
break;
26-
case 'standard':
27-
default: {
28-
standardLayout(board);
29-
}
21+
// if (mazeType === "none") {
22+
switch (layoutType) {
23+
case 'circular':
24+
circularLayout(board);
25+
break;
26+
case 'standard':
27+
default: {
28+
standardLayout(board);
3029
}
30+
// }
3131
}
32-
// GridState.setGrid(layoutType);
3332
}, [board, layoutType]);
3433

3534
useEffect(() => {

0 commit comments

Comments
 (0)