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

Refactor Link component #2083

Open
gabriele-ct opened this issue Sep 13, 2024 · 0 comments
Open

Refactor Link component #2083

gabriele-ct opened this issue Sep 13, 2024 · 0 comments

Comments

@gabriele-ct
Copy link
Contributor

The Link component available in packages/gatsby-theme-docs/src/components/link.js
appears to have quite convoluted logic for handling different link cases. It would be nice to:

  • refactor it, maybe split it into different components, add util functions to achieve a better readability and manteinability
  • add some component testing to cover all the various cases that are currently covered by the component
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

No branches or pull requests

1 participant