Appease the linter
This commit is contained in:
parent
ff9d696881
commit
dec47a260c
3 changed files with 7 additions and 6 deletions
|
@ -22,7 +22,7 @@ import {
|
||||||
Capability,
|
Capability,
|
||||||
Widget,
|
Widget,
|
||||||
WidgetEventCapability,
|
WidgetEventCapability,
|
||||||
WidgetKind
|
WidgetKind,
|
||||||
} from "matrix-widget-api";
|
} from "matrix-widget-api";
|
||||||
import { objectShallowClone } from "../../../utils/objects";
|
import { objectShallowClone } from "../../../utils/objects";
|
||||||
import StyledCheckbox from "../elements/StyledCheckbox";
|
import StyledCheckbox from "../elements/StyledCheckbox";
|
||||||
|
@ -107,9 +107,8 @@ export default class WidgetCapabilitiesPromptDialog extends React.PureComponent<
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_WidgetCapabilitiesPromptDialog_cap">
|
<div className="mx_WidgetCapabilitiesPromptDialog_cap" key={cap + i}>
|
||||||
<StyledCheckbox
|
<StyledCheckbox
|
||||||
key={cap + i}
|
|
||||||
checked={isChecked}
|
checked={isChecked}
|
||||||
onChange={() => this.onToggle(cap)}
|
onChange={() => this.onToggle(cap)}
|
||||||
>{text.primary}</StyledCheckbox>
|
>{text.primary}</StyledCheckbox>
|
||||||
|
|
|
@ -26,7 +26,9 @@ import { iterableDiff, iterableUnion } from "../../utils/iterables";
|
||||||
import { MatrixClientPeg } from "../../MatrixClientPeg";
|
import { MatrixClientPeg } from "../../MatrixClientPeg";
|
||||||
import ActiveRoomObserver from "../../ActiveRoomObserver";
|
import ActiveRoomObserver from "../../ActiveRoomObserver";
|
||||||
import Modal from "../../Modal";
|
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
|
// TODO: Purge this from the universe
|
||||||
|
|
||||||
|
|
|
@ -228,7 +228,7 @@ export class CapabilityText {
|
||||||
|
|
||||||
// Now handle all the message types we care about. There are more message types available, however
|
// Now handle all the message types we care about. There are more message types available, however
|
||||||
// they are not as common so we don't bother rendering them. They'll fall into the generic case.
|
// they are not as common so we don't bother rendering them. They'll fall into the generic case.
|
||||||
switch(eventCap.keyStr) {
|
switch (eventCap.keyStr) {
|
||||||
case MsgType.Text: {
|
case MsgType.Text: {
|
||||||
if (eventCap.direction === EventDirection.Send) {
|
if (eventCap.direction === EventDirection.Send) {
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue