DiamondLightSource / DiamondLightSource/sci-react-ui
Allow CustomLink type to create link menus
Offen
accepted
priority: low
- Vorherrschende Sprache
- TypeScript
- Sterne
- 8
- Forks
- 3
- Ø Merge
- 3 T. 15 Std.
- Gemergte PRs (30 T.)
- 5
Beschreibung
Allow creation of the menu items, currently only in NavBar and Footer, to be created with an array of CustomLink types.
```react
export type CustomLink = {
name: string;
href: string;
}
```
e.g. Something like:
```react
const myLinks: CustomLink[] = [{
"name":"menu one",
"href":"/menu/one/"
}]
```
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.