Skip to content

Commit

Permalink
fix: Fixed website label for landscapes (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui authored Dec 21, 2021
1 parent a634e93 commit 9651418
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
8 changes: 2 additions & 6 deletions src/landscape/components/LandscapeList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -128,7 +128,7 @@ const LandscapeCards = ({ landscapes }) => {
{landscape.website && (
<Grid item xs={12}>
<Typography variant="caption">
{t('landscape.list_column_contact')}
{t('landscape.list_column_website')}
</Typography>
<Link component={Box} href={landscape.website} underline="none">
{landscape.website}
Expand Down Expand Up @@ -173,10 +173,6 @@ const LandscapeList = () => {
)
}

if (!landscapes) {
return null
}

return (
<Box sx={{
paddingTop: theme.spacing(3),
Expand Down
10 changes: 2 additions & 8 deletions src/landscape/landscapeSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import * as groupUtils from 'group/groupUtils'
const initialState = {
list: {
fetching: true,
landscapes: [],
message: null
landscapes: []
},
view: {
fetching: true,
Expand Down Expand Up @@ -67,19 +66,14 @@ const landscapeSlice = createSlice({
[fetchLandscapes.rejected]: (state, action) => ({
...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
}
}),
Expand Down
2 changes: 1 addition & 1 deletion src/localization/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9651418

Please sign in to comment.