Skip to content

[Profile-card] Refactor component to remove hardcoded Meshmate names #7885

Description

@debkarma

Description

See Profile-card component (src/components/Profile-card/index.js), the code is currently hardcoding specific names to conditionally render the Meshmate icon badge.

Note: I would love to be assigned to this issue so I can submit a PR to refactor it.

Expected Behavior

The part of the code must be dynamic and must not depend on fixed string matching. The code part must rather validate some property that has been passed down through frontmatter in order to determine if it is necessary to render a particular Meshmate badge.

Screenshots

Here is the current hardcoded implementation in the codebase:

Image

Contributor Resources and Handbook

The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the master branch.

Join the Layer5 Community by submitting your community member form.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions