layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

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

Open debkrm opened this issue 4 months ago β€’ 1 comments

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.

debkrm avatar Jul 25 '26 07:07 debkrm

@YASHMAHAKAL @KhushamBansal could you please assign it to me?

debkrm avatar Jul 25 '26 08:07 debkrm