Skip to content

Commit

Permalink
Merge pull request #3 from Sustainer2020/ui_calc
Browse files Browse the repository at this point in the history
clicked state
  • Loading branch information
ph1ne4s authored Mar 4, 2024
2 parents 3787c63 + d2bce40 commit 0533922
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/IndiaMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function IndiaMap({ onStateClick }) {
.range(COLOR_RANGE);

function onLocationClick(geo) {
const clickedState = geo.properties.NAME_1;
const clickedState = geo.properties.name;
// setStateCode(geo.id);
// setStateName(clickedState);

Expand Down
2 changes: 1 addition & 1 deletion src/components/StatePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const StatePage = ({ selectedState }) => {
<div className='d-flex flex-column h-100'>
<div className="col-md-10 p-5 vh-100">
<div className="mt-4">
<h2>State Page of Uttarakhand</h2>
<h2>State Page of {selectedState}</h2>
<br />
<div>
<label>Select Chart Type:</label>
Expand Down

0 comments on commit 0533922

Please sign in to comment.