File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
templates/alloy-template/src Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ export default async function Page({ params }: Props) {
1818 graphUrl : process . env . OPTIMIZELY_GRAPH_URL ,
1919 } ) ;
2020 const path = `/${ slug . join ( '/' ) } /` ;
21- const c = await client . getContentByPath ( path ) ;
21+ const pageContent = await client . getContentByPath ( path ) ;
2222
23- if ( c . length === 0 ) {
23+ if ( pageContent . length === 0 ) {
2424 notFound ( ) ;
2525 }
2626
@@ -29,9 +29,9 @@ export default async function Page({ params }: Props) {
2929 { /** Passing down client and currentPath to Footer to fetch dynamic links */ }
3030 < Header client = { client } currentPath = { path } />
3131 < div className = "container mx-auto p-10" >
32- < OptimizelyComponent opti = { c [ 0 ] } />
32+ < OptimizelyComponent opti = { pageContent [ 0 ] } />
3333 </ div >
34- < Footer client = { client } currentPath = { path } />
34+ < Footer client = { client } />
3535 </ >
3636 ) ;
3737}
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ function Standard({ opti }: StandardPageProps) {
5858 { /* Heading and Description */ }
5959 < div className = "space-y-4" >
6060 < h1
61- { ...pa ( 'title ' ) }
61+ { ...pa ( 'heading ' ) }
6262 className = "text-4xl font-bold tracking-tight text-gray-900 sm:text-5xl"
6363 >
6464 { opti . heading }
Original file line number Diff line number Diff line change @@ -12,10 +12,9 @@ interface FooterSection {
1212
1313interface FooterProps {
1414 client : GraphClient ;
15- currentPath : string ;
1615}
1716
18- async function Footer ( { client, currentPath } : FooterProps ) {
17+ async function Footer ( { client } : FooterProps ) {
1918 const allLinks = await Promise . all ( [
2019 client . getItems ( '/en/' ) ,
2120 client . getItems ( '/en/about-us' ) ,
You can’t perform that action at this time.
0 commit comments