File tree Expand file tree Collapse file tree
pwa/components/con/layout Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export default function LayoutBase({
2323 return (
2424 < >
2525 < Nav edition = { edition } nav = { nav } isTicketingOpen = { isTicketingOpen } />
26- < MobileNav nav = { nav } />
26+ < MobileNav nav = { nav } edition = { edition } />
2727 < div className = "relative z-10" >
2828 { children }
2929 < Footer
Original file line number Diff line number Diff line change @@ -6,12 +6,14 @@ import styles from "./MobileNav.module.css";
66import { Navigation } from "types/con" ;
77import ConLink from "../common/ConLink" ;
88import { LanguageContext } from "contexts/con/LanguageContext" ;
9+ import { getPreviousEdition } from "data/con/editions" ;
910
1011interface MobileNavType {
1112 nav ?: Navigation ;
13+ edition ?: string ;
1214}
1315
14- export default function MobileNav ( { nav } : MobileNavType ) {
16+ export default function MobileNav ( { nav, edition } : MobileNavType ) {
1517 const pathname = usePathname ( ) ;
1618 const [ opened , setOpened ] = useState ( false ) ;
1719 const { t } = useContext ( LanguageContext ) ;
@@ -67,7 +69,11 @@ export default function MobileNav({ nav }: MobileNavType) {
6769 ) }
6870 onClick = { toggleOpen }
6971 >
70- < ConLink href = { link . to } > { t ( link . text ) } </ ConLink >
72+ < ConLink href = { link . to } >
73+ { t ( link . text , {
74+ previous_edition : getPreviousEdition ( edition || "" ) ,
75+ } ) }
76+ </ ConLink >
7177 </ div >
7278 ) ) }
7379 </ div >
You can’t perform that action at this time.
0 commit comments