Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Refactor Link component #2083

@gabriele-ct

Description

@gabriele-ct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions