diff --git a/src/App.js b/src/App.js
index 2c4307c..fb8ae3f 100644
--- a/src/App.js
+++ b/src/App.js
@@ -44,22 +44,20 @@ export default function App() {
-
-
-
+
+
>
);
}
diff --git a/src/Box.js b/src/Box.js
index 70fcdea..ea1be4a 100644
--- a/src/Box.js
+++ b/src/Box.js
@@ -1,4 +1,4 @@
-import React, { useState, useEffect,useRef } from "react";
+import React, { useState, useEffect, useRef } from "react";
import "./styles.css";
export default function Box({
@@ -7,21 +7,22 @@ export default function Box({
coli,
ri,
populated2dArray,
- updateBox
+ updateBox,
+ isRunning
}) {
let boxWidth = 100 / gridSize;
-let fontSize=`${boxWidth*20}%`;
+ let fontSize = `${boxWidth * 20}%`;
return (
{
- updateBox(populated2dArray, ri,coli);
-
+ !isRunning && updateBox(populated2dArray, ri, coli);
}}
>
{box}