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";
66
77type CtaHeaderActiveLinkProps = Readonly < {
88 href : string ;
9+ activeHref ?: string ;
910 children : ReactNode ;
1011} > ;
1112
@@ -21,7 +22,9 @@ export const CtaHeader = () => (
2122 < div className = "sticky top-0 z-20 bg-primary" >
2223 < Container as = "header" className = "flex h-14 items-center justify-between" >
2324 < 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 >
2528 < PrivateElement >
2629 < CtaHeaderActiveLink href = "/admin" > Admin</ CtaHeaderActiveLink >
2730 </ PrivateElement >
You can’t perform that action at this time.
0 commit comments