You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/perseus-editor/src/hint-editor.tsx
+26-40Lines changed: 26 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -407,46 +407,32 @@ class CombinedHintsEditor extends React.Component<CombinedHintsEditorProps> {
407
407
408
408
render(): React.ReactNode{
409
409
const{itemId, hints}=this.props;
410
-
consthintElems=_.map(
411
-
hints,
412
-
function(hint,i){
413
-
return(
414
-
<CombinedHintEditor
415
-
ref={"hintEditor"+i}
416
-
key={"hintEditor"+i}
417
-
isFirst={i===0}
418
-
isLast={i+1===hints.length}
419
-
itemId={itemId}
420
-
hint={hint}
421
-
pos={i}
422
-
// @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
423
-
imageUploader={this.props.imageUploader}
424
-
// eslint-disable-next-line react/jsx-no-bind
425
-
// @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
426
-
onChange={this.handleHintChange.bind(this,i)}
427
-
// eslint-disable-next-line react/jsx-no-bind
428
-
// @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
429
-
onRemove={this.handleHintRemove.bind(this,i)}
430
-
// eslint-disable-next-line react/jsx-no-bind
431
-
// @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
432
-
onMove={this.handleHintMove.bind(this,i)}
433
-
// @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
434
-
deviceType={this.props.deviceType}
435
-
// @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
436
-
apiOptions={this.props.apiOptions}
437
-
// @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
438
-
highlightLint={this.props.highlightLint}
439
-
// @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
440
-
previewURL={this.props.previewURL}
441
-
// TODO(CP-4838): what should be passed here?
442
-
contentPaths={[]}
443
-
// @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
0 commit comments