- index.js:73 Не вызван handler
- index.js:105 Не вызван handler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
isQuestionEditingDisabled(state) { | |
const isEditable = editableQuestionStates.includes( | |
state.wrapper.status | |
); | |
return !isEditable; | |
} |
- index.js:90
Нужно добавить вызов handler, чтобы исправленный тест отрабатывал.
Та же история с
CheckboxInput#subscribe
- index.js:72 Лишняя строчка
- index.js:107
Имя переменной при создании
lebel
, при использованииlabel
. - index.js:109
Объект с именем
div
не был создан.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const context = ['sin', 'cos', 'exp'] | |
.map((name) => ('const ' + name + ' = Math.' + name + '; ')) | |
.join(''); | |
export const buildFunction = (fn: string): (x: number) => number => { | |
const fullFn = '(x) => { ' + context + ' return (' + fn + '); }'; | |
return eval(fullFn); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onInput={() => | |
setGroupState({ | |
...state, | |
mentorsGroupName: groupNameRef.current?.value || '', | |
}) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PostAnswerVerificationAndRemoveFiles: build.mutation<unknown, AnswerCheckAndRemoveFilesPayload>({ | |
async queryFn(payload, _queryApi, _extraOptions, fetchWithBQ) { | |
const checkPayload: AnswerCheckPayload = { | |
playerId: payload.playerId, | |
nodeId: payload.nodeId, | |
answerStatus: payload.answerStatus, | |
mentorsComment: payload.mentorsComment | |
}; | |
const reviewResult = await fetchWithBQ({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"classes": { | |
"listItem": "py-3 sm:py-4 w-100", | |
"container": "flex items-center space-x-4 cursor-pointer", | |
"wrapper": "min-w-0 flex-1", | |
"userName": "truncate text-sm font-medium text-gray-900", | |
"iconContainer": "inline-flex items-center text-base font-semibold text-gray-900" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface LazyProps { | |
condition: boolean; | |
render: () => React.ReactNode; | |
fallback?: () => React.ReactNode; | |
} | |
export const LazyWhen = ({ condition, render, fallback }: LazyProps) => { | |
if (condition) { | |
return render(); | |
} |
NewerOlder