From 96514184f9ed2a5ca207e804a5e5ce636d6513b6 Mon Sep 17 00:00:00 2001 From: Jose Buitron Date: Tue, 21 Dec 2021 11:56:48 -0500 Subject: [PATCH] fix: Fixed website label for landscapes (#108) --- src/landscape/components/LandscapeList.js | 8 ++------ src/landscape/landscapeSlice.js | 10 ++-------- src/localization/locales/en-US.json | 2 +- 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/src/landscape/components/LandscapeList.js b/src/landscape/components/LandscapeList.js index be360ea96..ea08a0fd0 100644 --- a/src/landscape/components/LandscapeList.js +++ b/src/landscape/components/LandscapeList.js @@ -51,7 +51,7 @@ const LandscapeTable = ({ landscapes }) => { minWidth: 200 }, { field: 'website', - headerName: t('landscape.list_column_contact'), + headerName: t('landscape.list_column_website'), sortable: false, flex: 1.5, minWidth: 200, @@ -128,7 +128,7 @@ const LandscapeCards = ({ landscapes }) => { {landscape.website && ( - {t('landscape.list_column_contact')} + {t('landscape.list_column_website')} {landscape.website} @@ -173,10 +173,6 @@ const LandscapeList = () => { ) } - if (!landscapes) { - return null - } - return ( ({ ...state, list: { - ...state.list, fetching: false, - message: { - severity: 'error', - content: action.payload - } + landscapes: [] } }), [fetchLandscapes.fulfilled]: (state, action) => ({ ...state, list: { fetching: false, - message: null, landscapes: action.payload } }), diff --git a/src/localization/locales/en-US.json b/src/localization/locales/en-US.json index 8f5e4fde6..da593fa25 100644 --- a/src/localization/locales/en-US.json +++ b/src/localization/locales/en-US.json @@ -91,7 +91,7 @@ "list_leave_button": "Member", "list_column_name": "Landscape Name", "list_column_location": "Location", - "list_column_contact": "Contact Info", + "list_column_website": "Website", "list_column_members": "Members", "list_column_actions": "Actions", "list_empty": "No Landscapes",