Skip to content

Commit 830cf8e

Browse files
authored
Merge pull request #230 from ethereum/contributorsJsonBug
Fix: load all contributors data
2 parents 029435d + f98b0f8 commit 830cf8e

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

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)