[Profile-card] Refactor component to remove hardcoded Meshmate names
kind/bughelp wantedframework/gatsby
### Description
See `Profile-card` component ([`src/components/Profile-card/index.js`](https://github.com/layer5io/layer5/blob/master/src/components/Profile-card/index.js#L23-L31)), 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:
<img width="526" height="222" alt="Image" src="https://github.com/user-attachments/assets/2f512fa3-2945-4746-83ba-86e82957d65f" />
---
<img src="https://raw.githubusercontent.com/layer5io/layer5/master/.github/assets/images/layer5/5-light-small.svg" width="24px" align="left" /><h2>Contributor Resources and <a href="https://layer5.io/community/handbook">Handbook</a></h2>
The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the [`master` branch](https://github.com/layer5io/layer5/tree/master).
- 📚 See [contributing instructions](https://github.com/layer5io/layer5/blob/master/CONTRIBUTING.md).
- 🎨 Wireframes and [designs for Layer5 site](https://www.figma.com/file/5ZwEkSJwUPitURD59YHMEN/Layer5-Designs) in Figma [(open invite)](https://www.figma.com/team_invite/redeem/GvB8SudhEOoq3JOvoLaoMs)
- 🙋🏾🙋🏼 Questions: [Discussion Forum](https://discuss.meshery.io) and [Community Slack](https://slack.layer5.io).
<img src="https://raw.githubusercontent.com/layer5io/layer5/master/.github/assets/images/buttons/community.webp" height="22px" align="left" />Join the Layer5 Community by submitting your [community member form](https://layer5.io/newcomer).
0 条评论