Skip to content

Commit 6b7925a

Browse files
authored
Merge branch 'dev' into stats-box-grid
2 parents 6443488 + 830cf8e commit 6b7925a

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

netlify.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
[functions]
2121
included_files = [
22-
"!./src/data/**/*",
22+
"./src/intl/**/*",
2323
"!./public/**/*",
24-
"!./src/intl/**/*",
24+
"!./node_modules/@swc/core-linux-x64-musl/**/*",
2525
]

src/components/Contributors.tsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
import { useEffect, useState } from "react"
21
import { shuffle } from "lodash"
32
import { Box, Flex, Image, LinkBox, LinkOverlay } from "@chakra-ui/react"
43

54
import InlineLink from "@/components/Link"
65
import Text from "@/components/OldText"
76

8-
// TODO: Re-import once Crowdin scripts are functional and data available
9-
// import data from "../data/contributors.json"
7+
import data from "!!raw-loader!@/../.all-contributorsrc"
108

119
export interface Contributor {
1210
login: string
@@ -17,15 +15,7 @@ export interface Contributor {
1715
}
1816

1917
const Contributors = () => {
20-
const [contributorsList, setContributorsList] = useState<Array<Contributor>>(
21-
[]
22-
)
23-
24-
// TODO: Re-enable once Crowdin scripts are functional and data available
25-
// useEffect(() => {
26-
// const list = shuffle(data.contributors)
27-
// setContributorsList(list)
28-
// }, [])
18+
const contributorsList = shuffle(JSON.parse(data).contributors)
2919

3020
return (
3121
<>

0 commit comments

Comments
 (0)