File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { AddQuestionButton } from "./AddQuestionButton";
6
6
7
7
type CtaHeaderActiveLinkProps = Readonly < {
8
8
href : string ;
9
+ activeHref ?: string ;
9
10
children : ReactNode ;
10
11
} > ;
11
12
@@ -21,7 +22,9 @@ export const CtaHeader = () => (
21
22
< div className = "sticky top-0 z-20 bg-primary" >
22
23
< Container as = "header" className = "flex h-14 items-center justify-between" >
23
24
< nav className = "flex grow gap-4 text-sm text-white sm:grow-0" >
24
- < CtaHeaderActiveLink href = "/questions/js/1" > Lista pytań</ CtaHeaderActiveLink >
25
+ < CtaHeaderActiveLink activeHref = "/questions" href = "/questions/js/1" >
26
+ Lista pytań
27
+ </ CtaHeaderActiveLink >
25
28
< PrivateElement >
26
29
< CtaHeaderActiveLink href = "/admin" > Admin</ CtaHeaderActiveLink >
27
30
</ PrivateElement >
You can’t perform that action at this time.
0 commit comments