Skip to content

Commit

Permalink
Refactor animation functions in Navbar.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
adiletbaimyrza committed Nov 19, 2023
1 parent 757fdb8 commit 62463fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dijkstra-prim-visualization/src/components/Navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import { runDijkstra, runPrim } from "./NavbarUtils";
const Navbar = () => {
const { nodes, edges } = useContext(GraphParamsContext);

const animatePrim = async () => {
const animatePrim = () => {
const edgeIds = runPrim(nodes, edges);
startAnimations(edgeIds);
};

const animateDijkstra = async () => {
const animateDijkstra = () => {
const edgeIds = runDijkstra(nodes, edges);
startAnimations(edgeIds);
};
Expand Down

0 comments on commit 62463fa

Please sign in to comment.