Appease the linter

This commit is contained in:
Travis Ralston 2020-11-19 12:12:00 -07:00
parent ff9d696881
commit dec47a260c
3 changed files with 7 additions and 6 deletions

View file

@ -22,7 +22,7 @@ import {
Capability,
Widget,
WidgetEventCapability,
WidgetKind
WidgetKind,
} from "matrix-widget-api";
import { objectShallowClone } from "../../../utils/objects";
import StyledCheckbox from "../elements/StyledCheckbox";
@ -107,9 +107,8 @@ export default class WidgetCapabilitiesPromptDialog extends React.PureComponent<
: null;
return (
<div className="mx_WidgetCapabilitiesPromptDialog_cap">
<div className="mx_WidgetCapabilitiesPromptDialog_cap" key={cap + i}>
<StyledCheckbox
key={cap + i}
checked={isChecked}
onChange={() => this.onToggle(cap)}
>{text.primary}</StyledCheckbox>

View file

@ -26,7 +26,9 @@ import { iterableDiff, iterableUnion } from "../../utils/iterables";
import { MatrixClientPeg } from "../../MatrixClientPeg";
import ActiveRoomObserver from "../../ActiveRoomObserver";
import Modal from "../../Modal";
import WidgetCapabilitiesPromptDialog, { getRememberedCapabilitiesForWidget } from "../../components/views/dialogs/WidgetCapabilitiesPromptDialog";
import WidgetCapabilitiesPromptDialog, {
getRememberedCapabilitiesForWidget,
} from "../../components/views/dialogs/WidgetCapabilitiesPromptDialog";
// TODO: Purge this from the universe