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
+22-35Lines changed: 22 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -410,44 +410,31 @@ class CombinedHintsEditor extends React.Component<CombinedHintsEditorProps> {
410
410
411
411
render(): React.ReactNode{
412
412
const{itemId, hints}=this.props;
413
-
consthintElems=_.map(
414
-
hints,
415
-
function(hint,i){
416
-
return(
417
-
<CombinedHintEditor
418
-
ref={"hintEditor"+i}
413
+
consthintElems=hints.map((hint,i)=>{
414
+
return(
415
+
<CombinedHintEditor
416
+
ref={"hintEditor"+i}
419
417
key={"hintEditor"+i}
420
418
isFirst={i===0}
421
419
isLast={i+1===hints.length}
422
-
itemId={itemId}
423
-
hint={hint}
424
-
pos={i}
425
-
// @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
426
-
imageUploader={this.props.imageUploader}
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
-
onChange={this.handleHintChange.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
-
onRemove={this.handleHintRemove.bind(this,i)}
433
-
// eslint-disable-next-line react/jsx-no-bind
434
-
// @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.
435
-
onMove={this.handleHintMove.bind(this,i)}
436
-
// @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
437
-
deviceType={this.props.deviceType}
438
-
// @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
439
-
apiOptions={this.props.apiOptions}
440
-
// @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
441
-
highlightLint={this.props.highlightLint}
442
-
// @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
0 commit comments