File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed
public/content/contributing/translation-program/translatathon/details Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,9 @@ EthStaker
123
123
- https://crowdin.com/project/ethstaker-website
124
124
- https://crowdin.com/project/ethstaker-knowledge-base
125
125
126
+ Solidity Language Docs
127
+ - https://crowdin.com/project/solidity-language-docs
128
+
126
129
### Evaluation process
127
130
128
131
All translations will be subject to QA and feedback, where professional linguists will evaluate submissions based on quality and accuracy.
Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ import { FeedbackThumbsUpIcon } from "@/components/icons"
9
9
import { trackCustomEvent } from "@/lib/utils/matomo"
10
10
import { isLangRightToLeft } from "@/lib/utils/translations"
11
11
12
- import { Button } from "../../tailwind/ui/buttons/Button"
13
-
12
+ import { Button } from "./ui/buttons/Button"
14
13
import Translation from "./Translation"
15
14
16
15
import { useSurvey } from "@/hooks/useSurvey"
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ const LanguagePicker = ({
44
44
* @param {string } event - The keydown event.
45
45
*/
46
46
useEventListener ( "keydown" , ( e ) => {
47
- if ( e . key !== "\\" ) return
47
+ if ( e . key !== "\\" || e . metaKey || e . ctrlKey ) return
48
48
e . preventDefault ( )
49
49
onOpen ( )
50
50
} )
Original file line number Diff line number Diff line change 1
1
import { useEffect , useMemo , useState } from "react"
2
+ import isChromatic from "chromatic"
2
3
import shuffle from "lodash/shuffle"
3
4
import { useTranslation } from "next-i18next"
4
5
@@ -51,7 +52,9 @@ export const useQuizWidget = ({
51
52
const rawQuestion : RawQuestion = questionBank [ id ]
52
53
return { id, ...rawQuestion }
53
54
} )
54
- const shuffledQuestions = shuffle ( questions )
55
+
56
+ // ! Do not shuffle questions in Chromatic to keep the modal story snapshot stable
57
+ const shuffledQuestions = isChromatic ( ) ? questions : shuffle ( questions )
55
58
const quiz : Quiz = {
56
59
title : t ( rawQuiz . title ) ,
57
60
questions : shuffledQuestions ,
You can’t perform that action at this time.
0 commit comments