Skip to content

Commit

Permalink
changed error blocking build on github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
adenjonah committed May 17, 2024
1 parent 47a5d61 commit 7c4abcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
6 changes: 4 additions & 2 deletions src/pages/constant/constant.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@
display: flex;
justify-content: space-around;
align-items: center;
border-radius: 20px; /* Add curves to the center bar */
}


.centerButton {
width: 100px;
height: 50px;
width: 30%;
height: 60%;
background-color: lightblue;
color: white;
display: flex;
Expand Down
10 changes: 0 additions & 10 deletions src/pages/constant/constant.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@ import Map from '../../components/Map.js';
import Modal from './Modal'; // Import the Modal component

function Constant() {
const [isMessageModalVisible, setMessageModalVisible] = useState(false);
const [isAlertModalVisible, setAlertModalVisible] = useState(false);
const [isMapModalVisible, setMapModalVisible] = useState(false);

const showMessageModal = () => setMessageModalVisible(true);
const hideMessageModal = () => setMessageModalVisible(false);

const showAlertModal = () => setAlertModalVisible(true);
const hideAlertModal = () => setAlertModalVisible(false);

Expand All @@ -39,12 +35,6 @@ function Constant() {
<div id="Map"><Map /></div>
<div id="EV2"><EVData evNumber={2} /></div>
</div>

<Modal
isVisible={isMessageModalVisible}
hideModal={hideMessageModal}
content={<div>Message content goes here</div>}
/>
<Modal
isVisible={isAlertModalVisible}
hideModal={hideAlertModal}
Expand Down

0 comments on commit 7c4abcf

Please sign in to comment.