@@ -133,66 +133,66 @@ export const RoadmapLayout: React.FC<IProps> = ({
133
133
< Box position = "relative" >
134
134
{ slug === "/roadmap/" ? (
135
135
< HubHero
136
- heroImgSrc = { RoadmapHubHeroImage }
136
+ heroImg = { RoadmapHubHeroImage }
137
137
header = { frontmatter . title }
138
138
title = { "" }
139
139
description = { frontmatter . description }
140
140
/>
141
141
) : (
142
142
< HeroContainer >
143
- < Flex
144
- w = "full"
145
- flexDirection = { { base : "column" , lg : "row" } }
146
- justify = "space-between"
147
- >
148
- < TitleCard >
149
- { /* TODO: Double check this slug works */ }
150
- < Breadcrumbs slug = { slug } mb = "8" />
151
- < Title > { frontmatter . title } </ Title >
152
- < OldText > { frontmatter . description } </ OldText >
153
- { frontmatter ?. buttons && (
154
- // FIXME: remove the `ul` override once removed the corresponding
155
- // global styles in `src/@chakra-ui/gatsby-plugin/styles.ts`
156
- < Wrap spacing = { 2 } marginBottom = { 4 } sx = { { ul : { m : 0 } } } >
157
- { frontmatter . buttons . map ( ( button , idx ) => {
158
- if ( button ?. to ) {
143
+ < Flex
144
+ w = "full"
145
+ flexDirection = { { base : "column" , lg : "row" } }
146
+ justify = "space-between"
147
+ >
148
+ < TitleCard >
149
+ { /* TODO: Double check this slug works */ }
150
+ < Breadcrumbs slug = { slug } mb = "8" />
151
+ < Title > { frontmatter . title } </ Title >
152
+ < OldText > { frontmatter . description } </ OldText >
153
+ { frontmatter ?. buttons && (
154
+ // FIXME: remove the `ul` override once removed the corresponding
155
+ // global styles in `src/@chakra-ui/gatsby-plugin/styles.ts`
156
+ < Wrap spacing = { 2 } marginBottom = { 4 } sx = { { ul : { m : 0 } } } >
157
+ { frontmatter . buttons . map ( ( button , idx ) => {
158
+ if ( button ?. to ) {
159
+ return (
160
+ < WrapItem key = { idx } >
161
+ < ButtonLink variant = { button ?. variant } to = { button ?. to } >
162
+ { button . label }
163
+ </ ButtonLink >
164
+ </ WrapItem >
165
+ )
166
+ }
159
167
return (
160
168
< WrapItem key = { idx } >
161
- < ButtonLink variant = { button ?. variant } to = { button ?. to } >
162
- { button . label }
163
- </ ButtonLink >
169
+ < Button variant = { button ?. variant } toId = { button ?. toId } >
170
+ { button ? .label }
171
+ </ Button >
164
172
</ WrapItem >
165
173
)
166
- }
167
- return (
168
- < WrapItem key = { idx } >
169
- < Button variant = { button ?. variant } toId = { button ?. toId } >
170
- { button ?. label }
171
- </ Button >
172
- </ WrapItem >
173
- )
174
- } ) }
175
- </ Wrap >
176
- ) }
177
- < TableOfContents
178
- position = "relative"
179
- zIndex = "2"
180
- items = { tocItems }
181
- isMobile
182
- />
183
- </ TitleCard >
184
- < Center >
185
- < Image
186
- src = { frontmatter . image }
187
- alt = { frontmatter . alt ?? "" }
188
- style = { { objectFit : "contain" } }
189
- width = { 700 }
190
- height = { 345 }
191
- priority
192
- />
193
- </ Center >
194
- </ Flex >
195
- </ HeroContainer >
174
+ } ) }
175
+ </ Wrap >
176
+ ) }
177
+ < TableOfContents
178
+ position = "relative"
179
+ zIndex = "2"
180
+ items = { tocItems }
181
+ isMobile
182
+ />
183
+ </ TitleCard >
184
+ < Center >
185
+ < Image
186
+ src = { frontmatter . image }
187
+ alt = { frontmatter . alt ?? "" }
188
+ style = { { objectFit : "contain" } }
189
+ width = { 700 }
190
+ height = { 345 }
191
+ priority
192
+ />
193
+ </ Center >
194
+ </ Flex >
195
+ </ HeroContainer >
196
196
) }
197
197
< Page >
198
198
{ /* TODO: Switch to `above="lg"` after completion of Chakra Migration */ }
0 commit comments