Skip to content

Commit 9331d62

Browse files
committed
chore: update props
1 parent f69c7de commit 9331d62

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

src/layouts/Docs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export const DocsLayout = ({
233233
<H1 id="top">{frontmatter.title}</H1>
234234
<FileContributors
235235
contributors={contributors}
236-
lastEditLocaleTimestamp={lastEditLocaleTimestamp!}
236+
lastEditLocaleTimestamp={lastEditLocaleTimestamp}
237237
/>
238238
<TableOfContents
239239
slug={slug}

src/layouts/Static.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,14 @@ export const StaticLayout = ({
114114
) : (
115115
<>
116116
<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>
126125
</>
127126
)}
128127

src/layouts/Upgrade.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,10 @@ export const UpgradeLayout = ({
117117
))}
118118
</List>
119119
</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>
125124
</>
126125
}
127126
heroImg={frontmatter.image}

src/lib/interfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export interface MdPageContent {
105105
content: string
106106
frontmatter: Frontmatter
107107
tocItems: ToCItem[]
108-
lastEditLocaleTimestamp?: string
108+
lastEditLocaleTimestamp: string
109109
lastDeployLocaleTimestamp: string
110110
contentNotTranslated: boolean
111111
contributors: FileContributor[]

0 commit comments

Comments
 (0)