Skip to content

Commit 9ce5558

Browse files
authored
Remove NIST banner text (#276)
Remove the government shutdown banner from NIST interface
2 parents 950f6ee + 2eab43f commit 9ce5558

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

nist-interface/src/pages/dashboard/index.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55

66
#dashboard-map-container {
77
width: 100%;
8-
height: calc(100% - 40px);
8+
height: 100%;
99
position: relative;
1010
overflow: hidden;
11+
/* Uncomment these for enabling banner. Also remove height: 100% from above.
1112
margin-top: 40px;
13+
height: calc(100% - 40px); */
1214
}
1315

1416
.resize-handle {

nist-interface/src/pages/dashboard/index.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useEffect, useState } from 'react';
22
import { Panel, PanelGroup, PanelResizeHandle } from 'react-resizable-panels';
3-
import { Banner } from '../../components/banner';
3+
// import { Banner } from '../../components/banner';
44
import Box from '@mui/material/Box';
55
import DragHandleIcon from '@mui/icons-material/DragHandle';
66
import { MapBoxViewer } from '../../components/mapboxViewer';
@@ -11,7 +11,8 @@ import { LoadingSpinner } from '../../components/loading';
1111

1212
import "./index.css";
1313

14-
const BANNER_TEXT = "Due to the lapse in federal government funding, the U.S. Greenhouse Gas Center is not updating this website. We sincerely regret this inconvenience.";
14+
// Banner text placeholder. Uncomment component, CSS changes and this line to enable banner.
15+
// const BANNER_TEXT = "Placeholder banner text";
1516

1617
export function Dashboard({ stations, selectedStationId, setSelectedStationId, ghg, agency, region, stationCode, setSelectedGHG, zoomLevel, stationMetadata }) {
1718
const [displayChart, setDisplayChart] = useState(false);
@@ -24,7 +25,7 @@ export function Dashboard({ stations, selectedStationId, setSelectedStationId, g
2425

2526
return (
2627
<Box className="fullSize">
27-
<Banner text={BANNER_TEXT} />
28+
{/* <Banner text={BANNER_TEXT} /> */}
2829
<PanelGroup direction='vertical' className='panel-wrapper'>
2930
<Panel
3031
id='map-panel'

0 commit comments

Comments
 (0)