Skip to content

Commit

Permalink
added some notes for handling tropical storms
Browse files Browse the repository at this point in the history
  • Loading branch information
lstillwe committed May 3, 2024
1 parent cbcf297 commit 4f2d759
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/control-panel/control-panel.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { useLayers } from '@context/map-context';
import { Sheet, ButtonGroup, Button, Typography, IconButton, Box } from '@mui/joy';
import { Sheet, ButtonGroup, Button, Typography, IconButton, Box, Switch } from '@mui/joy';
import { ArrowUpward, ArrowDownward } from '@mui/icons-material';
import apsLogo from '@images/aps-trans-logo.png';

Expand All @@ -21,7 +21,7 @@ export const ControlPanel = () => {
bottom: 0, right: 0,
overflow: 'hidden',
p: 0,
backgroundColor: '#f0f4f820', //: '#f0f4f8',
backgroundColor: '#f0f4f820',
height: '40vh',
width: '300px',
zIndex: 999,
Expand All @@ -47,11 +47,17 @@ export const ControlPanel = () => {
<ArrowDownward/>
</IconButton>
</ButtonGroup>}>
{/* NOTE: If this is a tropical storm run, we need to change cycle to advisoy
Also probabaly want to add a switch for hurricane layers - which
involves making a request to the MetGet API */}
cycle {layers.length && layers[0].properties.cycle}
</Typography>
{ (layers.length) &&
<p style={{paddingLeft: 30, color: 'white'}}>{layers[0].properties.grid_type} grid</p>
}
<Typography sx={{ paddingLeft: 10, color: "white" }} component="label" endDecorator={<Switch/>}>
observations
</Typography>
<ButtonGroup
disabled={false}
orientation="vertical"
Expand Down

0 comments on commit 4f2d759

Please sign in to comment.