Skip to content

Commit

Permalink
Update morecast link on landing page (#4013)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgboss authored Oct 17, 2024
1 parent 6b15aa7 commit 8612af3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions web/src/features/landingPage/toolInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import {
HFI_CALC_ROUTE,
PERCENTILE_CALC_NAME,
PERCENTILE_CALC_ROUTE,
MORE_CAST_2_NAME,
MORE_CAST_2_ROUTE
MORE_CAST_NAME,
MORECAST_ROUTE
} from 'utils/constants'

const ICON_FONT_SIZE = 'large'
Expand Down Expand Up @@ -86,9 +86,9 @@ export const hfiCalcInfo: ToolInfo = {
isBeta: false
}

export const moreCast2Info: ToolInfo = {
name: MORE_CAST_2_NAME,
route: MORE_CAST_2_ROUTE,
export const moreCastInfo: ToolInfo = {
name: MORE_CAST_NAME,
route: MORECAST_ROUTE,
description: (
<Typography>
A system that enhances how the predictive services team creates weather forecasts and integrates this information
Expand Down Expand Up @@ -135,7 +135,7 @@ export const fbpGoInfo: ToolInfo = {
// The order of items in this array determines the order of items as they appear in the landing page
// side bar and order of CardTravelSharp.
export const toolInfos = [
moreCast2Info,
moreCastInfo,
fireBehaviourAdvisoryInfo,
cHainesInfo,
fireBehaviourCalcInfo,
Expand Down
6 changes: 3 additions & 3 deletions web/src/features/moreCast2/pages/MoreCast2Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { DateTime } from 'luxon'
import { selectAuthentication, selectStationGroups, selectStationGroupsMembers } from 'app/rootReducer'
import { AppDispatch } from 'app/store'
import { GeneralHeader } from 'components'
import { MORE_CAST_2_DOC_TITLE, MORE_CAST_2_NAME } from 'utils/constants'
import { MORE_CAST_DOC_TITLE, MORE_CAST_NAME } from 'utils/constants'
import StationPanel from 'features/moreCast2/components/StationPanel'
import { DateRange } from 'components/dateRangePicker/types'
import { fetchStationGroups } from 'commonSlices/stationGroupsSlice'
Expand Down Expand Up @@ -78,7 +78,7 @@ const MoreCast2Page = () => {
}

useEffect(() => {
document.title = MORE_CAST_2_DOC_TITLE
document.title = MORE_CAST_DOC_TITLE
dispatch(fetchStationGroups())
}, []) // eslint-disable-line react-hooks/exhaustive-deps

Expand All @@ -104,7 +104,7 @@ const MoreCast2Page = () => {

return (
<Root data-testid="more-cast-2-page">
<GeneralHeader isBeta={false} spacing={0.985} title={MORE_CAST_2_NAME} productName={MORE_CAST_2_NAME} />
<GeneralHeader isBeta={false} spacing={0.985} title={MORE_CAST_NAME} productName={MORE_CAST_NAME} />
<Content>
<SidePanel>
<StationPanel
Expand Down
4 changes: 2 additions & 2 deletions web/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const FBP_GO_NAME = 'FBP Go'
export const FIRE_BEHAVIOUR_ADVISORY_NAME = 'Auto Spatial Advisory'
export const FIRE_BEHAVIOUR_CALC_NAME = 'FireBat'
export const HFI_CALC_NAME = 'HFI Calculator'
export const MORE_CAST_2_NAME = 'MoreCast'
export const MORE_CAST_NAME = 'MoreCast'
export const PERCENTILE_CALC_NAME = 'Percentile Calculator'

// UI constants
Expand All @@ -56,7 +56,7 @@ export const ASA_DOC_TITLE = 'Automated Spatial Advisory | BCWS PSU'
export const C_HAINES_DOC_TITLE = 'C-Haines | BCWS PSU'
export const FIREBAT_DOC_TITLE = 'FireBat | BCWS PSU'
export const HFI_CALC_DOC_TITLE = 'HFI Calculator | BCWS PSU'
export const MORE_CAST_2_DOC_TITLE = 'MoreCast | BCWS PSU'
export const MORE_CAST_DOC_TITLE = 'MoreCast | BCWS PSU'
export const PERCENTILE_CALC_DOC_TITLE = 'Percentile Calculator | BCWS PSU'

export enum FireCentres {
Expand Down

0 comments on commit 8612af3

Please sign in to comment.