Allow CustomLink type to create link menus
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
Start by reading the NavBar and Footer components where menu items are currently created, then trace how their menu props are typed and rendered. Define the expected CustomLink[] input from the issue and verify that supplied names and hrefs appear as menu items in both components.
Written by the indexing model from the issue text.
Description
Allow creation of the menu items, currently only in NavBar and Footer, to be created with an array of CustomLink types.
export type CustomLink = {
name: string;
href: string;
}
e.g. Something like:
const myLinks: CustomLink[] = [{
"name":"menu one",
"href":"/menu/one/"
}]
<NavBar menu={my-links} />
- Dominant language
- TypeScript
- Stars
- 8
- Forks
- 3
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 11
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DiamondLightSource/sci-react-ui
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
needs-triage
Difficulty 4/5 3-5 days Newbie friendliness 55/100
-
accepted
Difficulty 4/5 3-5 days Newbie friendliness 68/100
-
needs-triage
Difficulty 5/5 Over a week Newbie friendliness 45/100
All issues in DiamondLightSource/sci-react-ui
Similar issues
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Crush Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
ElementsProject/cln-application#167 · 1 comment · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Quantco/pnpm-licenses#17 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100