File tree Expand file tree Collapse file tree 4 files changed +14
-16
lines changed Expand file tree Collapse file tree 4 files changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ export const DocsLayout = ({
233
233
< H1 id = "top" > { frontmatter . title } </ H1 >
234
234
< FileContributors
235
235
contributors = { contributors }
236
- lastEditLocaleTimestamp = { lastEditLocaleTimestamp ! }
236
+ lastEditLocaleTimestamp = { lastEditLocaleTimestamp }
237
237
/>
238
238
< TableOfContents
239
239
slug = { slug }
Original file line number Diff line number Diff line change @@ -114,15 +114,14 @@ export const StaticLayout = ({
114
114
) : (
115
115
< >
116
116
< Breadcrumbs slug = { slug } mb = "8" />
117
- { lastEditLocaleTimestamp && (
118
- < Text
119
- color = "text200"
120
- dir = { isLangRightToLeft ( locale as Lang ) ? "rtl" : "ltr" }
121
- >
122
- < Translation id = "page-last-updated" /> :{ " " }
123
- { lastEditLocaleTimestamp }
124
- </ Text >
125
- ) }
117
+
118
+ < Text
119
+ color = "text200"
120
+ dir = { isLangRightToLeft ( locale as Lang ) ? "rtl" : "ltr" }
121
+ >
122
+ < Translation id = "page-last-updated" /> :{ " " }
123
+ { lastEditLocaleTimestamp }
124
+ </ Text >
126
125
</ >
127
126
) }
128
127
Original file line number Diff line number Diff line change @@ -117,11 +117,10 @@ export const UpgradeLayout = ({
117
117
) ) }
118
118
</ List >
119
119
</ Box >
120
- { lastEditLocaleTimestamp && (
121
- < LastUpdated >
122
- { t ( "common:page-last-updated" ) } : { lastEditLocaleTimestamp }
123
- </ LastUpdated >
124
- ) }
120
+
121
+ < LastUpdated >
122
+ { t ( "common:page-last-updated" ) } : { lastEditLocaleTimestamp }
123
+ </ LastUpdated >
125
124
</ >
126
125
}
127
126
heroImg = { frontmatter . image }
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ export interface MdPageContent {
105
105
content : string
106
106
frontmatter : Frontmatter
107
107
tocItems : ToCItem [ ]
108
- lastEditLocaleTimestamp ? : string
108
+ lastEditLocaleTimestamp : string
109
109
lastDeployLocaleTimestamp : string
110
110
contentNotTranslated : boolean
111
111
contributors : FileContributor [ ]
You can’t perform that action at this time.
0 commit comments