Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMS-572: Add FeatureIcon component #65

Merged
merged 2 commits into from
Jan 7, 2025
Merged

CMS-572: Add FeatureIcon component #65

merged 2 commits into from
Jan 7, 2025

Conversation

duncan-oxd
Copy link
Collaborator

Jira Ticket

CMS-572

Description

Added a component to resolve the featureType.name string from Strapi to a local svg path to display the icon. It involved a big map but I think it's fine. The dev server will pre-import all of the files, but in production I think it will just populate the img src so the icons will be loaded on demand.

I also renamed some classnames and variables for clarity.

@duncan-oxd duncan-oxd self-assigned this Dec 24, 2024
@diego-oxd
Copy link
Collaborator

Looks good.

Note that for wilderness camping, the icon path we get from Strapi is wilderness-camping.svg not just wilderness-camping. We either have to change it in strapi or change the map here.
Everything else looks good.

@ayumi-oxd
Copy link
Collaborator

Change icon name from wilderness-camping.svg to wilderness-camping on Srapi PROD.

@duncan-oxd duncan-oxd merged commit 772a2a6 into alpha Jan 7, 2025
@duncan-oxd duncan-oxd deleted the CMS-572-icons branch January 7, 2025 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants