File tree Expand file tree Collapse file tree 4 files changed +24
-17
lines changed Expand file tree Collapse file tree 4 files changed +24
-17
lines changed Original file line number Diff line number Diff line change @@ -298,10 +298,12 @@ const Footer = ({ lastDeployDate }: FooterProps) => {
298
298
alignItems = "center"
299
299
flexWrap = "wrap"
300
300
>
301
- < Box color = "text200" >
302
- < Translation id = "website-last-updated" /> :{ " " }
303
- { getLocaleTimestamp ( locale as Lang , lastDeployDate ! ) }
304
- </ Box >
301
+ { lastDeployDate && (
302
+ < Box color = "text200" >
303
+ < Translation id = "website-last-updated" /> :{ " " }
304
+ { getLocaleTimestamp ( locale as Lang , lastDeployDate ) }
305
+ </ Box >
306
+ ) }
305
307
< Box my = { 4 } >
306
308
{ socialLinks . map ( ( link , idk ) => {
307
309
return (
Original file line number Diff line number Diff line change @@ -119,13 +119,15 @@ export const StaticLayout = ({
119
119
) : (
120
120
< >
121
121
< Breadcrumbs slug = { slug } mb = "8" />
122
- < Text
123
- color = "text200"
124
- dir = { isLangRightToLeft ( locale as Lang ) ? "rtl" : "ltr" }
125
- >
126
- < Translation id = "page-last-updated" /> :{ " " }
127
- { getLocaleTimestamp ( locale as Lang , lastUpdatedDate ! ) }
128
- </ Text >
122
+ { lastUpdatedDate && (
123
+ < Text
124
+ color = "text200"
125
+ dir = { isLangRightToLeft ( locale as Lang ) ? "rtl" : "ltr" }
126
+ >
127
+ < Translation id = "page-last-updated" /> :{ " " }
128
+ { getLocaleTimestamp ( locale as Lang , lastUpdatedDate ) }
129
+ </ Text >
130
+ ) }
129
131
</ >
130
132
) }
131
133
Original file line number Diff line number Diff line change 9
9
Icon ,
10
10
List ,
11
11
ListItem ,
12
+ Skeleton ,
12
13
Text ,
13
14
useToken ,
14
15
} from "@chakra-ui/react"
@@ -193,10 +194,12 @@ export const UpgradeLayout = ({
193
194
) ) }
194
195
</ List >
195
196
</ Box >
196
- < LastUpdated >
197
- { t ( "common:page-last-updated" ) } :{ " " }
198
- { getLocaleTimestamp ( locale as Lang , lastUpdatedDate ! ) }
199
- </ LastUpdated >
197
+ { lastUpdatedDate && (
198
+ < LastUpdated >
199
+ { t ( "common:page-last-updated" ) } :{ " " }
200
+ { getLocaleTimestamp ( locale as Lang , lastUpdatedDate ) }
201
+ </ LastUpdated >
202
+ ) }
200
203
</ TitleCard >
201
204
{ frontmatter . image && (
202
205
< Image
Original file line number Diff line number Diff line change @@ -473,8 +473,8 @@ const TutorialPage = ({
473
473
</ Flex >
474
474
< Text color = "text200" fontSize = "sm" textTransform = "uppercase" >
475
475
< Emoji text = ":writing_hand:" fontSize = "sm" me = { 2 } />
476
- { tutorial . author } •
477
- { published ( locale ! , tutorial . published ?? "" ) }
476
+ { tutorial . author }
477
+ { tutorial . published && " • " + published ( locale ! , tutorial . published ) }
478
478
{ tutorial . timeToRead && (
479
479
< >
480
480
{ " " }
You can’t perform that action at this time.
0 commit comments