diff --git a/.env.development b/.env.development index 41ddc2c8..7d87de61 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,9 @@ EXTEND_ESLINT=true # Set linting to true on dev # developemnt API and keys REACT_APP_API_HOST='https://wmca-api-portal-staging.azure-api.net' REACT_APP_API_KEY='0d4cca4a2c5d40c3bfbbfe45d1bbf294' +# feedback link id +REACT_APP_FEEDBACK_LINK_URL='https://forms.office.com/Pages/ResponsePage.aspx' +REACT_APP_FEEDBACK_LINK_ID='RetZCK7xCk6e-ubWa7tnL1voVKMeFXVKvUhU3Uh8aqFUNUNVNFlKOVpLMThNV0g0T1VZWDYyT1FLNCQlQCN0PWcu' # Bus autocomplete API and keys REACT_APP_BUS_AUTOCOMPLETE_API='https://rtccdisruptionsbhrx2guer.azurewebsites.net' # Roads autocomplete key diff --git a/.env.production b/.env.production index 66885027..3fe870e4 100644 --- a/.env.production +++ b/.env.production @@ -1,6 +1,9 @@ # Live API and keys REACT_APP_API_HOST='https://api.wmnetwork.co.uk' REACT_APP_API_KEY='514b8bafa009424289cb2d7a12c54f6e' +# feedback link id +REACT_APP_FEEDBACK_LINK_URL='https://forms.office.com/Pages/ResponsePage.aspx' +REACT_APP_FEEDBACK_LINK_ID='RetZCK7xCk6e-ubWa7tnL1voVKMeFXVKvUhU3Uh8aqFUNUNVNFlKOVpLMThNV0g0T1VZWDYyT1FLNCQlQCN0PWcu' # Bus autocomplete API and keys REACT_APP_BUS_AUTOCOMPLETE_API='https://rtccdisruptionsb5phceeso.azurewebsites.net' # Roads autocomplete key diff --git a/netlify.toml b/netlify.toml index 7a7d9e56..60bf6a89 100644 --- a/netlify.toml +++ b/netlify.toml @@ -13,4 +13,6 @@ package = "@sentry/netlify-build-plugin" REACT_APP_API_HOST='https://wmca-api-portal-staging.azure-api.net' REACT_APP_API_KEY='0d4cca4a2c5d40c3bfbbfe45d1bbf294' REACT_APP_BUS_AUTOCOMPLETE_API='https://rtccdisruptions6zqwajo6s.azurewebsites.net' - REACT_APP_ROADS_AUTOCOMPLETE_KEY='e0c1216f818a41be8d528ac1d4f7ebfd' \ No newline at end of file + REACT_APP_ROADS_AUTOCOMPLETE_KEY='e0c1216f818a41be8d528ac1d4f7ebfd' + REACT_APP_FEEDBACK_LINK_URL='https://forms.office.com/Pages/ResponsePage.aspx' + REACT_APP_FEEDBACK_LINK_ID='RetZCK7xCk6e-ubWa7tnL1voVKMeFXVKvUhU3Uh8aqFUNUNVNFlKOVpLMThNV0g0T1VZWDYyT1FLNCQlQCN0PWcu' \ No newline at end of file diff --git a/src/components/ViewToShow/Header/Header.js b/src/components/ViewToShow/Header/Header.js index 8d61cef4..51d1beac 100644 --- a/src/components/ViewToShow/Header/Header.js +++ b/src/components/ViewToShow/Header/Header.js @@ -11,6 +11,7 @@ import s from './Header.module.scss'; const Header = ({ isFetching, hasError }) => { const [fetchDisruptionState, setFetchDisruptionsState] = useContext(FetchDisruptionsContext); + const { REACT_APP_FEEDBACK_LINK_URL, REACT_APP_FEEDBACK_LINK_ID } = process.env; // Destructure env vars const handleClick = () => { let isMapVisible; @@ -41,7 +42,7 @@ const Header = ({ isFetching, hasError }) => {