From 8612af37422067e2ee3f24c9aafea2265bf4ab65 Mon Sep 17 00:00:00 2001 From: dgboss Date: Thu, 17 Oct 2024 15:50:54 -0700 Subject: [PATCH] Update morecast link on landing page (#4013) --- web/src/features/landingPage/toolInfo.tsx | 12 ++++++------ web/src/features/moreCast2/pages/MoreCast2Page.tsx | 6 +++--- web/src/utils/constants.ts | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/web/src/features/landingPage/toolInfo.tsx b/web/src/features/landingPage/toolInfo.tsx index c38743663..9c4d3884c 100644 --- a/web/src/features/landingPage/toolInfo.tsx +++ b/web/src/features/landingPage/toolInfo.tsx @@ -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' @@ -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: ( A system that enhances how the predictive services team creates weather forecasts and integrates this information @@ -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, diff --git a/web/src/features/moreCast2/pages/MoreCast2Page.tsx b/web/src/features/moreCast2/pages/MoreCast2Page.tsx index b61782695..dcac87a4e 100644 --- a/web/src/features/moreCast2/pages/MoreCast2Page.tsx +++ b/web/src/features/moreCast2/pages/MoreCast2Page.tsx @@ -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' @@ -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 @@ -104,7 +104,7 @@ const MoreCast2Page = () => { return ( - +