Skip to content

Commit

Permalink
Replace tourism-and-recreation with sustainable-tourism in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
yulia-bel committed Nov 23, 2023
1 parent 26b90f1 commit 5b5295b
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion frontend/components/project-map-pin/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const ProjectMapPin: FC<ProjectMapPinProps> = ({ category, interactive =
// icon={trusted ? TrustedMapPinIcon : MapPinIcon}
icon={MapPinIcon}
className={cx({
'fill-category-tourism text-category-tourism': category === 'tourism-and-recreation',
'fill-category-tourism text-category-tourism': category === 'sustainable-tourism',
'fill-category-production text-category-production':
category === 'non-timber-forest-production',
'fill-category-agrosystems text-category-agrosystems':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const CategoryTagDot: FC<CategoryTagDotProps> = ({
'w-8 h-8': size === 'large',
'w-4 h-4 mr-4 ': size === 'small',
'w-2 h-2 mr-2': size === 'smallest',
'bg-category-tourism': category === 'tourism-and-recreation',
'bg-category-tourism': category === 'sustainable-tourism',
'bg-category-production': category === 'non-timber-forest-production',
'bg-category-agrosystems': category === 'sustainable-agrosystems',
'bg-category-forestry': category === 'forestry-and-agroforestry',
Expand Down
4 changes: 2 additions & 2 deletions frontend/containers/category-tag/component.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ const Template: Story<CategoryTagProps> = ({ children, ...rest }: CategoryTagPro

export const Default: Story<CategoryTagProps> = Template.bind({});
Default.args = {
category: 'tourism-and-recreation',
children: 'Tourism & Recreation',
category: 'sustainable-tourism',
children: 'Sustainable Tourism',
};
8 changes: 4 additions & 4 deletions frontend/containers/impact-chart/component.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@ const CompactTemplate: Story<ImpactChartProps> = (args) => (
export const Default = Template.bind({});
Default.args = {
impact: projectImpact(projectMock as unknown as ProjectType)[ImpactAreas.Municipality],
category: 'tourism-and-recreation',
category: 'sustainable-tourism',
};

export const Placeholder = Template.bind({});
Placeholder.args = {
category: 'tourism-and-recreation',
category: 'sustainable-tourism',
};

export const Compact = CompactTemplate.bind({});
Compact.args = {
compactMode: true,
impact: projectImpact(projectMock as unknown as ProjectType)[ImpactAreas.Municipality],
category: 'tourism-and-recreation',
category: 'sustainable-tourism',
};

export const CompactPlaceholder = CompactTemplate.bind({});
CompactPlaceholder.args = {
compactMode: true,
category: 'tourism-and-recreation',
category: 'sustainable-tourism',
};
2 changes: 1 addition & 1 deletion frontend/containers/tags-grid/component.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Default.args = {
title: 'Invests in',
type: 'category',
tags: [
{ id: 'tourism-and-recreation', name: 'Tourism & Recreation' },
{ id: 'sustainable-tourism', name: 'Sustainable Tourism' },
{ id: 'non-timber-forest-production', name: 'Non-timber forest production' },
{ id: 'sustainable-agrosystems', name: 'Sustainable agrosystems' },
{ id: 'forestry-and-agroforestry', name: 'Forestry & agroforestry' },
Expand Down
2 changes: 1 addition & 1 deletion frontend/lang/transifex/zu.json
Original file line number Diff line number Diff line change
Expand Up @@ -2428,7 +2428,7 @@
"string": "Project financial instrument"
},
"hOp4Ue": {
"string": "Tourism and recreation"
"string": "Sustainable Tourism"
},
"hPsrc0": {
"string": "insert your answer (max 600 characters)"
Expand Down
2 changes: 1 addition & 1 deletion frontend/mockups/api/v1/account/project_developer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"twitter": "https://twitter.com/pdorganizationtest1",
"mission": "Mission Test organization 1. This organization's mission is to find sustainable tourism solutions for the Amazon region. ",
"project_developer_type": "ngo",
"categories": ["tourism-and-recreation"],
"categories": ["sustainable-tourism"],
"impacts": ["biodiversity", "climate", "water", "community"],
"language": "en",
"entity_legal_registration_number": "1234567890",
Expand Down
4 changes: 2 additions & 2 deletions frontend/mockups/api/v1/enums.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
}
},
{
"id": "tourism-and-recreation",
"id": "sustainable-tourism",
"type": "category",
"attributes": {
"name": "Tourism and Recreation",
"name": "Sustainable Tourism",
"color": "#4492E5",
"description": "Accommodation, travel, transportation, hospitality, visitor experiences and eco-tourism projects."
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/mockups/filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"description": "Agricultura sustentável e regenerativa, pesca e aquicultura, bem como a fabricação de subprodutos derivados."
},
{
"id": "tourism-and-recreation",
"id": "sustainable-tourism",
"type": "category",
"name": "Turismo e Lazer",
"color": "#4492E5",
Expand Down
4 changes: 2 additions & 2 deletions frontend/mockups/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"twitter": "",
"mission": "Lorem ipsum sit amet woof",
"project_developer_type": "academic",
"categories": ["sustainable-agrosystems", "tourism-and-recreation"],
"categories": ["sustainable-agrosystems", "sustainable-tourism"],
"impacts": ["biodiversity", "community"],
"language": "en",
"entity_legal_registration_number": "212432423423",
Expand Down Expand Up @@ -139,7 +139,7 @@
"project_developer_type": "academic",
"categories": [
"sustainable-agrosystems",
"tourism-and-recreation"
"sustainable-tourism"
],
"impacts": [
"biodiversity",
Expand Down
2 changes: 1 addition & 1 deletion frontend/types/category.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export type CategoryType =
| 'sustainable-agrosystems'
| 'tourism-and-recreation'
| 'sustainable-tourism'
| 'forestry-and-agroforestry'
| 'non-timber-forest-production'
| 'human-capital-and-inclusion';

0 comments on commit 5b5295b

Please sign in to comment.