DiamondLightSource / DiamondLightSource/sci-react-ui

Allow CustomLink type to create link menus

Aperta
#48 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
accepted priority: low
Lingua principale
TypeScript
Stelle
8
Fork
3
Merge medio
3g 15h
PR unite (30g)
5

Descrizione

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/"
}]

```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.