File tree Expand file tree Collapse file tree 6 files changed +13
-5
lines changed Expand file tree Collapse file tree 6 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
- import FileContributors from "@/components/FileContributors"
2
1
import type { Author , CrowdinContributor } from "@/lib/types"
3
2
3
+ import FileContributors from "@/components/FileContributors"
4
+
4
5
type CrowdinContributorsProps = {
5
6
relativePath : string
6
7
lastUpdatedDate : string
Original file line number Diff line number Diff line change 1
1
import { join } from "path"
2
2
3
3
import { useEffect , useState } from "react"
4
+
4
5
import type { Author , FileContributorsState } from "@/lib/types"
5
6
6
7
import { GITHUB_COMMITS_URL , OLD_CONTENT_DIR } from "@/lib/constants"
Original file line number Diff line number Diff line change 1
1
import { join } from "path"
2
+
2
3
import { useEffect , useState } from "react"
3
4
import { useRouter } from "next/router"
5
+
6
+ import type { Lang , LastUpdatedState } from "@/lib/types"
7
+
4
8
import {
5
9
DEFAULT_LOCALE ,
6
10
GITHUB_COMMITS_URL ,
7
11
OLD_CONTENT_DIR ,
8
12
} from "@/lib/constants"
9
- import type { Lang , LastUpdatedState } from "@/lib/types"
10
13
11
14
import { gitHubAuthHeaders } from "@/hooks/useClientSideGitHubContributors"
12
15
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import {
15
15
} from "@chakra-ui/react"
16
16
17
17
import { ChildOnlyProp } from "@/lib/types"
18
+ import type { DocsFrontmatter , MdPageContent } from "@/lib/interfaces"
18
19
19
20
import BannerNotification from "@/components/BannerNotification"
20
21
import { ButtonLink } from "@/components/Buttons"
@@ -49,7 +50,7 @@ import YouTube from "@/components/YouTube"
49
50
50
51
// Utils
51
52
import { DEFAULT_LOCALE , EDIT_CONTENT_URL } from "@/lib/constants"
52
- import type { DocsFrontmatter , MdPageContent } from "@/lib/interfaces"
53
+
53
54
import { useClientSideGitHubLastEdit } from "@/hooks/useClientSideGitHubLastEdit"
54
55
55
56
const Page = ( props : ChildOnlyProp & Pick < FlexProps , "dir" > ) => (
Original file line number Diff line number Diff line change 1
- import type { ReactElement , ReactNode } from "react "
1
+ import type { Options } from "mdast-util-toc "
2
2
import type { NextPage } from "next"
3
3
import type { AppProps } from "next/app"
4
- import type { Options } from "mdast-util-toc "
4
+ import type { ReactElement , ReactNode } from "react "
5
5
6
6
import type {
7
7
DocsFrontmatter ,
Original file line number Diff line number Diff line change 1
1
import type { CrowdinContributor , Lang } from "@/lib/types"
2
+
2
3
import translators from "@/data/crowdin/combined-translators.json"
3
4
import fileIds from "@/data/crowdin/file-ids.json"
5
+
4
6
import { DEFAULT_LOCALE } from "@/lib/constants"
5
7
6
8
export const getCrowdinContributors = (
You can’t perform that action at this time.
0 commit comments