Skip to content

Commit bafa2d4

Browse files
author
Shawn Toubeau
committed
pushing for mike
1 parent 4319eb1 commit bafa2d4

File tree

9 files changed

+149
-137
lines changed

9 files changed

+149
-137
lines changed
File renamed without changes.

src/actions/menuActions/menuActions.ts

-10
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export const CLEAR_GRID = "CLEAR_GRID";
1010
export const TOGGLE_MOVE_START = "TOGGLE_MOVE_START";
1111
export const TOGGLE_MOVE_END = "TOGGLE_MOVE_END";
1212
export const LOAD_MAZE = "LOAD_MAZE";
13-
export const SAVE_MAZE = "SAVE_MAZE";
1413
export const CHANGE_SPEED = "CHANGE_SPEED";
1514
export const RANDOMIZE_WALLS = "RANDOMIZE_WALLS";
1615
export const UPDATE_GRID_SIZE = "UPDATE_GRID_SIZE";
@@ -112,15 +111,6 @@ export const handleClearGrid = (
112111
};
113112
};
114113

115-
export const saveMaze = (maze: MazeInfo) => {
116-
console.log("This is not hooked up to a reducer");
117-
console.log(JSON.stringify(maze));
118-
return {
119-
type: SAVE_MAZE,
120-
payload: JSON.stringify(maze),
121-
};
122-
};
123-
124114
export const loadMaze = (mazeInfo: MazeInfo): AnyAction => {
125115
return {
126116
type: LOAD_MAZE,
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export enum Algorithms {
2+
astar = "A*",
3+
djikstras = "Djikstras",
4+
bfs = "BFS",
5+
dfs = "DFS",
6+
}

src/components/Menu/Menu.scss

+10
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,13 @@
2525
width: calc(100% - 20px);
2626
}
2727
}
28+
29+
.save-modal {
30+
width: 70%;
31+
32+
.save-modal-content {
33+
height: 70vh;
34+
overflow-y: overlay;
35+
padding-right: 15px;
36+
}
37+
}

0 commit comments

Comments
 (0)