Skip to content

Commit 7da68c5

Browse files
committed
feat(header): add optional routeParams to links getter
Allow links to include optional routeParams for more flexible routing. This change supports passing parameters to routes directly from the header component, improving navigation customization based on user state.
1 parent a4f3bc4 commit 7da68c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/header/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default class Header extends Component<Signature> {
4040
return this.authenticator.currentUser;
4141
}
4242

43-
get links(): { text: string; route: string; type: 'route' | 'link' }[] {
43+
get links(): { text: string; route: string; type: 'route' | 'link'; routeParams?: string[] }[] {
4444
if (this.currentUser) {
4545
return this.linksForAuthenticatedUser;
4646
} else {

0 commit comments

Comments
 (0)