File tree Expand file tree Collapse file tree 5 files changed +16
-13
lines changed Expand file tree Collapse file tree 5 files changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ type DocsLayoutProps = Pick<
204
204
| "lastUpdatedDate"
205
205
| "crowdinContributors"
206
206
| "contentNotTranslated"
207
- | "contributors "
207
+ | "gitContributors "
208
208
> &
209
209
Required < Pick < MdPageContent , "lastUpdatedDate" > > &
210
210
ChildOnlyProp & {
@@ -219,13 +219,13 @@ export const DocsLayout = ({
219
219
lastUpdatedDate,
220
220
crowdinContributors,
221
221
contentNotTranslated,
222
- contributors ,
222
+ gitContributors ,
223
223
} : DocsLayoutProps ) => {
224
224
const isPageIncomplete = ! ! frontmatter . incomplete
225
225
const { asPath : relativePath } = useRouter ( )
226
226
const absoluteEditPath = getEditPath ( relativePath )
227
227
228
- const gitHubLastEdit = contributors [ 0 ] ?. date
228
+ const gitHubLastEdit = gitContributors [ 0 ] ?. date
229
229
const intlLastEdit = gitHubLastEdit || lastUpdatedDate
230
230
231
231
const useGitHubContributors =
@@ -246,7 +246,7 @@ export const DocsLayout = ({
246
246
{ useGitHubContributors ? (
247
247
< GitHubContributors
248
248
lastUpdatedDate = { lastUpdatedDate }
249
- contributors = { contributors }
249
+ contributors = { gitContributors }
250
250
/>
251
251
) : (
252
252
< CrowdinContributors
Original file line number Diff line number Diff line change @@ -159,7 +159,10 @@ export const tutorialsComponents = {
159
159
type TutorialLayoutProps = ChildOnlyProp &
160
160
Pick <
161
161
MdPageContent ,
162
- "tocItems" | "crowdinContributors" | "contentNotTranslated" | "contributors"
162
+ | "tocItems"
163
+ | "crowdinContributors"
164
+ | "contentNotTranslated"
165
+ | "gitContributors"
163
166
> &
164
167
Required < Pick < MdPageContent , "lastUpdatedDate" > > & {
165
168
frontmatter : TutorialFrontmatter
@@ -174,13 +177,13 @@ export const TutorialLayout = ({
174
177
lastUpdatedDate,
175
178
crowdinContributors,
176
179
contentNotTranslated,
177
- contributors ,
180
+ gitContributors ,
178
181
} : TutorialLayoutProps ) => {
179
182
const { asPath : relativePath } = useRouter ( )
180
183
const absoluteEditPath = getEditPath ( relativePath )
181
184
182
185
const borderColor = useToken ( "colors" , "border" )
183
- const gitHubLastEdit = contributors [ 0 ] ?. date
186
+ const gitHubLastEdit = gitContributors [ 0 ] ?. date
184
187
const intlLastEdit = gitHubLastEdit || lastUpdatedDate
185
188
186
189
const useGitHubContributors =
@@ -208,7 +211,7 @@ export const TutorialLayout = ({
208
211
{ children }
209
212
{ useGitHubContributors ? (
210
213
< GitHubContributors
211
- contributors = { contributors }
214
+ contributors = { gitContributors }
212
215
lastUpdatedDate = { lastUpdatedDate }
213
216
/>
214
217
) : (
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ export interface MdPageContent {
108
108
lastUpdatedDate ?: string
109
109
contentNotTranslated : boolean
110
110
crowdinContributors : CrowdinContributor [ ]
111
- contributors : FileContributor [ ]
111
+ gitContributors : FileContributor [ ]
112
112
}
113
113
114
114
// Local environment framework
Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ export const getContentBySlug = (slug: string) => {
334
334
const frontmatter = data as Frontmatter
335
335
const items : Omit <
336
336
MdPageContent ,
337
- "tocItems" | "crowdinContributors" | "contributors "
337
+ "tocItems" | "crowdinContributors" | "gitContributors "
338
338
> = {
339
339
slug,
340
340
content,
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ export const getStaticProps = (async (context) => {
197
197
tocItems,
198
198
crowdinContributors,
199
199
gfissues,
200
- contributors : gitContributors ,
200
+ gitContributors,
201
201
} ,
202
202
}
203
203
} ) satisfies GetStaticProps < Props , Params >
@@ -233,7 +233,7 @@ ContentPage.getLayout = (page) => {
233
233
tocItems,
234
234
crowdinContributors,
235
235
contentNotTranslated,
236
- contributors ,
236
+ gitContributors ,
237
237
} = page . props
238
238
239
239
const layoutProps = {
@@ -244,7 +244,7 @@ ContentPage.getLayout = (page) => {
244
244
tocItems,
245
245
crowdinContributors,
246
246
contentNotTranslated,
247
- contributors ,
247
+ gitContributors ,
248
248
}
249
249
const Layout = layoutMapping [ layout ]
250
250
You can’t perform that action at this time.
0 commit comments