Skip to content

Commit cf0f077

Browse files
committed
Fix type declaration
1 parent cf87975 commit cf0f077

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

web-vite/src/app/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function App() {
1818
<Layout>
1919
<Header />
2020
<Panel>
21-
<PanelInputs area={formattedArea} />
21+
<PanelInputs formattedArea={formattedArea} />
2222
<Stats
2323
stats={appState.stats}
2424
currentTimestamp={appState.currentTimestamp}

web-vite/src/app/inputs.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
interface PanelInputsProps {
2-
area: number;
2+
formattedArea: string;
33
}
44

55
export function PanelInputs(props: PanelInputsProps) {
6-
const { area } = props;
6+
const { formattedArea } = props;
77

88
return (
99
<article>
1010
<section>
1111
<h3>Area of Interest (AOI)</h3>
1212
<small>Zoom and pan the map to set the AOI for stats </small>
1313
<p>
14-
Currently selected: <strong>{area || "-"} km&sup2;</strong>
14+
Currently selected: <strong>{formattedArea || "-"} km&sup2;</strong>
1515
</p>
1616
</section>
1717
<section>

0 commit comments

Comments
 (0)