File tree Expand file tree Collapse file tree 1 file changed +23
-27
lines changed Expand file tree Collapse file tree 1 file changed +23
-27
lines changed Original file line number Diff line number Diff line change 7
7
Hide ,
8
8
Icon ,
9
9
ListItem ,
10
- Show ,
11
10
Text ,
12
11
UnorderedList ,
13
12
useToken ,
@@ -179,17 +178,15 @@ export const UseCasesLayout: React.FC<IProps> = ({
179
178
180
179
return (
181
180
< Box position = "relative" width = "full" >
182
- < Show above = { lgBp } >
183
- < BannerNotification shouldShow zIndex = "sticky" >
184
- < Emoji text = ":pencil:" fontSize = "2xl" me = { 4 } flexShrink = { 0 } />
185
- < Text m = { 0 } >
186
- { t ( "template-usecase:template-usecase-banner" ) } { " " }
187
- < InlineLink href = { absoluteEditPath } >
188
- { t ( "template-usecase-edit-link" ) }
189
- </ InlineLink >
190
- </ Text >
191
- </ BannerNotification >
192
- </ Show >
181
+ < BannerNotification shouldShow zIndex = "sticky" hideBelow = { lgBp } >
182
+ < Emoji text = ":pencil:" fontSize = "2xl" me = { 4 } flexShrink = { 0 } />
183
+ < Text m = { 0 } >
184
+ { t ( "template-usecase:template-usecase-banner" ) } { " " }
185
+ < InlineLink href = { absoluteEditPath } >
186
+ { t ( "template-usecase-edit-link" ) }
187
+ </ InlineLink >
188
+ </ Text >
189
+ </ BannerNotification >
193
190
< HeroContainer key = { frontmatter . title } >
194
191
< TitleCard >
195
192
< Emoji fontSize = "4rem" text = { frontmatter . emoji ! } />
@@ -233,21 +230,20 @@ export const UseCasesLayout: React.FC<IProps> = ({
233
230
} }
234
231
/>
235
232
</ HeroContainer >
236
- < Show above = { lgBp } >
237
- < Flex
238
- as = { BaseLink }
239
- to = { "#" + MAIN_CONTENT_ID }
240
- bg = "ednBackground"
241
- justifyContent = "center"
242
- p = { 4 }
243
- width = "full"
244
- _hover = { {
245
- bg : "background.base" ,
246
- } }
247
- >
248
- < Icon as = { MdExpandMore } fontSize = "2xl" color = "secondary" />
249
- </ Flex >
250
- </ Show >
233
+ < Flex
234
+ as = { BaseLink }
235
+ to = { "#" + MAIN_CONTENT_ID }
236
+ bg = "ednBackground"
237
+ justifyContent = "center"
238
+ p = { 4 }
239
+ width = "full"
240
+ _hover = { {
241
+ bg : "background.base" ,
242
+ } }
243
+ hideBelow = { lgBp }
244
+ >
245
+ < Icon as = { MdExpandMore } fontSize = "2xl" color = "secondary" />
246
+ </ Flex >
251
247
< Page >
252
248
{ /* TODO: Switch to `above="lg"` after completion of Chakra Migration */ }
253
249
< LeftNavBar
You can’t perform that action at this time.
0 commit comments