Skip to content

Commit

Permalink
feat: change name to landscape icon
Browse files Browse the repository at this point in the history
  • Loading branch information
benfurber committed Dec 19, 2024
1 parent e1b3c6f commit 7f1a791
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const allCategoriesForProjectKamp = [
_deleted: false,
_id: '45378bdfg',
_modified: '2022-12-03T18:03:51.313Z',
label: 'Landscaping',
label: 'Landscape',
},
{
_created: '2022-12-03T18:03:51.313Z',
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/Icon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const glyphs: IGlyphs = {
image: <MdImage />,
impact: iconMap.impact,
instagram: <FaInstagram />,
landscaping: iconMap.landscaping,
landscape: iconMap.landscape,
loading: iconMap.loading,
'location-on': <MdLocationOn />,
lock: <MdLock />,
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/Icon/svgs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import verifiedSVG from '../../assets/icons/icon-verified-badge.svg'
import viewSVG from '../../assets/icons/icon-views.svg'
import websiteSVG from '../../assets/icons/icon-website.svg'
import impactSVG from '../../assets/icons/impact.svg'
import landscapingSVG from '../../assets/icons/landscaping.svg'
import landscapeSVG from '../../assets/icons/landscape.svg'
import machineSVG from '../../assets/icons/machine.svg'
import machinesSVG from '../../assets/icons/machines.svg'
import mapSVG from '../../assets/icons/map.svg'
Expand Down Expand Up @@ -91,7 +91,7 @@ export const iconMap = {
hide: <ImageIcon src={eyeCrossedSVG} />,
hyperlink: <ImageIcon src={hyperlinkSVG} />,
impact: <ImageIcon src={impactSVG} />,
landscaping: <ImageIcon src={landscapingSVG} />,
landscape: <ImageIcon src={landscapeSVG} />,
loading: <ImageIcon src={loadingSVG} data-cy="icon-loading" />,
machine: <ImageIcon src={machineSVG} />,
machines: <ImageIcon src={machinesSVG} />,
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/Icon/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export type availableGlyphs =
| 'image'
| 'impact'
| 'instagram'
| 'landscaping'
| 'landscape'
| 'loading'
| 'location-on'
| 'lock'
Expand Down
2 changes: 1 addition & 1 deletion packages/cypress/src/fixtures/research.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const research: IResearchDB = {
_modified: '2012-10-27T01:47:57.948Z',
_created: '2012-08-02T07:27:04.609Z',
_id: 'ehdI345E36hWyk3Ockr',
label: 'Landscaping',
label: 'Landscape',
_deleted: false,
},
updates: [
Expand Down
8 changes: 4 additions & 4 deletions packages/cypress/src/integration/research/read.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('[Research]', () => {
.should('have.attr', 'src')
.and('include', coverImageFileName)
cy.get('[data-cy=Username]').contains('event_reader')
cy.get('[data-cy=category]').contains('Landscaping')
cy.get('[data-cy=category]').contains('Landscape')
cy.get('a').should('have.attr', 'href').and('eq', researchUrl)
cy.get('[data-cy=ItemResearchStatus]').contains('In progress')
cy.get('[data-tooltip-content="How useful is it"]')
Expand All @@ -48,15 +48,15 @@ describe('[Research]', () => {
cy.step('Can select a category to limit items displayed')
cy.get('[data-cy=category]').contains('Food')
cy.get('[data-cy=CategoryVerticalList]').within(() => {
cy.contains('Landscaping').click()
cy.contains('Landscape').click()
})
cy.get('[data-cy=CategoryVerticalList-Item-active]')
cy.get('[data-cy=category]').contains('Landscaping')
cy.get('[data-cy=category]').contains('Landscape')
cy.get('[data-cy=category]').contains('Food').should('not.exist')

cy.step('Can remove the category filter by selecting it again')
cy.get('[data-cy=CategoryVerticalList]').within(() => {
cy.contains('Landscaping').click()
cy.contains('Landscape').click()
})
cy.get('[data-cy=category]').contains('Food')

Expand Down
2 changes: 1 addition & 1 deletion shared/mocks/data/research.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const research = {
_modified: '2012-10-27T01:47:57.948Z',
_created: '2012-08-02T07:27:04.609Z',
_id: 'ehdI345E36hWyk3Ockr',
label: 'Landscaping',
label: 'Landscape',
_deleted: false,
},
title: 'Qwerty',
Expand Down

0 comments on commit 7f1a791

Please sign in to comment.