improve header components

1. remove "this is a US Government website"
2. modify "update" text to indicate new status.
This commit is contained in:
Matt Price 2025-01-24 18:54:43 -05:00
parent b8540564c2
commit faa204f12d
3 changed files with 6 additions and 6 deletions

View file

@ -10,7 +10,7 @@ import {
import {Link, useIntl} from 'gatsby-plugin-intl';
import React, {useEffect, useState} from 'react';
import {useWindowSize} from 'react-use';
import GovernmentBanner from '../GovernmentBanner';
// import GovernmentBanner from '../GovernmentBanner';
import J40MainGridContainer from '../J40MainGridContainer';
import Language from '../Language';
@ -238,7 +238,7 @@ const J40Header = ({location}:IJ40Header) => {
<Header basic={true} role={'banner'}>
{/* Banners */}
<GovernmentBanner />
{/* <GovernmentBanner /> */}
<UpdateBanner/>
{/* Logo and Navigation */}

View file

@ -36,7 +36,7 @@ export const METH_2_0_RELEASE_DATE = new Date(2024, 11, 20, 11, 59, 59); // Dec
// Update Banner
export const UPDATE_BANNER_HEADING_LARGE = <FormattedMessage
id={'common.pages.alerts.banner.update.heading.large'}
defaultMessage={'Version 2.0 of the tool is now available'}
defaultMessage={'This is an unofficial copy of the CEJST Tool. We are working on an overhaul, but in the meantime some links and text may incorrectly suggest that this site is affiliated with the US Government'}
description={'Alert heading that appears at the top of pages'}
/>;
@ -56,7 +56,7 @@ export const UPDATE_BANNER_CONTENT_LARGE = <FormattedMessage
export const UPDATE_BANNER_CONTENT_SMALL = <FormattedMessage
id={'common.pages.alerts.banner.update.content.small'}
defaultMessage={`<bold>This tool has been updated.</bold> The 2.0 version of the tool was released on {relDate}.`}
defaultMessage={`<bold>This is an unofficial copy of the CEJST Tool.</bold> We are working on an overhaul, but in the meantime some links and text may incorrectly suggest that this site is affiliated with the US Government.`}
description={`Alert body that appears at the top of pages.`}
values={{
bold: boldFn,

View file

@ -88,11 +88,11 @@
"description": "Alert body that appears at the top of pages."
},
"common.pages.alerts.banner.update.content.small": {
"defaultMessage": "<bold>This tool has been updated.</bold> The 2.0 version of the tool was released on {relDate}.",
"defaultMessage": "<bold>This is an unofficial copy of the CEJST Tool.</bold> We are working on an overhaul, but in the meantime some links and text may incorrectly suggest that this site is affiliated with the US Government.",
"description": "Alert body that appears at the top of pages."
},
"common.pages.alerts.banner.update.heading.large": {
"defaultMessage": "Version 2.0 of the tool is now available",
"defaultMessage": "This is an unofficial copy of the CEJST Tool. We are working on an overhaul, but in the meantime some links and text may incorrectly suggest that this site is affiliated with the US Government",
"description": "Alert heading that appears at the top of pages"
},
"common.pages.alerts.census.tract.title": {