Skip to content

Rework DocLinkCreator class #83

@andreaskienle

Description

@andreaskienle

Description

DocLinkCreator class should be converted into a hook, e.g. useLink() or useDocumentationLink() or similar which can be used like this (pick one):

  • option 1 (the chosen one)

    const { documentationHomepage } = useLink();
    
  • option 2

    const link = useLink();
    const documentationHomepage = link(Link.DocumentationHomepage);
    
  • option 3

    const link = useLink();
    const documentationHomepage = link('/path/to/homepage');
    

To be implemented:

  • remove class from FrontendConfigContext
  • replace usages of the class with calls to the hook

Metadata

Metadata

Assignees

Labels

area/mcp-uiAll ManagedControlPlane UI related issues

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions