From 757f8111269c589fd001e0cc56fafc8547da0318 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 2 Dec 2019 23:21:59 +0000 Subject: [PATCH] s/ContextualMenu/ContextMenu/ Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- .../structures/{ContextualMenu.js => ContextMenu.js} | 0 src/components/structures/TopLeftMenuButton.js | 2 +- src/components/views/avatars/MemberStatusMessageAvatar.js | 2 +- .../views/context_menus/GroupInviteTileContextMenu.js | 2 +- src/components/views/context_menus/MessageContextMenu.js | 2 +- src/components/views/context_menus/RoomTileContextMenu.js | 2 +- src/components/views/context_menus/TagTileContextMenu.js | 2 +- src/components/views/context_menus/TopLeftMenu.js | 2 +- src/components/views/context_menus/WidgetContextMenu.js | 2 +- src/components/views/dialogs/ShareDialog.js | 4 ++-- src/components/views/elements/AppTile.js | 2 +- src/components/views/elements/TagTile.js | 2 +- src/components/views/groups/GroupInviteTile.js | 2 +- src/components/views/messages/MessageActionBar.js | 2 +- src/components/views/messages/TextualBody.js | 4 ++-- src/components/views/rooms/RoomTile.js | 2 +- src/components/views/rooms/Stickerpicker.js | 2 +- 17 files changed, 18 insertions(+), 18 deletions(-) rename src/components/structures/{ContextualMenu.js => ContextMenu.js} (100%) diff --git a/src/components/structures/ContextualMenu.js b/src/components/structures/ContextMenu.js similarity index 100% rename from src/components/structures/ContextualMenu.js rename to src/components/structures/ContextMenu.js diff --git a/src/components/structures/TopLeftMenuButton.js b/src/components/structures/TopLeftMenuButton.js index fea5c3ffb4..e7928ab4d7 100644 --- a/src/components/structures/TopLeftMenuButton.js +++ b/src/components/structures/TopLeftMenuButton.js @@ -23,7 +23,7 @@ import MatrixClientPeg from '../../MatrixClientPeg'; import Avatar from '../../Avatar'; import { _t } from '../../languageHandler'; import dis from "../../dispatcher"; -import {ContextMenu, ContextMenuButton} from "./ContextualMenu"; +import {ContextMenu, ContextMenuButton} from "./ContextMenu"; const AVATAR_SIZE = 28; diff --git a/src/components/views/avatars/MemberStatusMessageAvatar.js b/src/components/views/avatars/MemberStatusMessageAvatar.js index cf7ca9057e..ed73dd33b9 100644 --- a/src/components/views/avatars/MemberStatusMessageAvatar.js +++ b/src/components/views/avatars/MemberStatusMessageAvatar.js @@ -22,7 +22,7 @@ import MemberAvatar from '../avatars/MemberAvatar'; import classNames from 'classnames'; import StatusMessageContextMenu from "../context_menus/StatusMessageContextMenu"; import SettingsStore from "../../../settings/SettingsStore"; -import {ContextMenu, ContextMenuButton} from "../../structures/ContextualMenu"; +import {ContextMenu, ContextMenuButton} from "../../structures/ContextMenu"; export default class MemberStatusMessageAvatar extends React.Component { static propTypes = { diff --git a/src/components/views/context_menus/GroupInviteTileContextMenu.js b/src/components/views/context_menus/GroupInviteTileContextMenu.js index 093e6045c7..3feffbc0d9 100644 --- a/src/components/views/context_menus/GroupInviteTileContextMenu.js +++ b/src/components/views/context_menus/GroupInviteTileContextMenu.js @@ -22,7 +22,7 @@ import { _t } from '../../../languageHandler'; import Modal from '../../../Modal'; import {Group} from 'matrix-js-sdk'; import GroupStore from "../../../stores/GroupStore"; -import {MenuItem} from "../../structures/ContextualMenu"; +import {MenuItem} from "../../structures/ContextMenu"; export default class GroupInviteTileContextMenu extends React.Component { static propTypes = { diff --git a/src/components/views/context_menus/MessageContextMenu.js b/src/components/views/context_menus/MessageContextMenu.js index adfd394b75..efbfc4322f 100644 --- a/src/components/views/context_menus/MessageContextMenu.js +++ b/src/components/views/context_menus/MessageContextMenu.js @@ -31,7 +31,7 @@ import Resend from '../../../Resend'; import SettingsStore from '../../../settings/SettingsStore'; import { isUrlPermitted } from '../../../HtmlUtils'; import { isContentActionable } from '../../../utils/EventUtils'; -import {MenuItem} from "../../structures/ContextualMenu"; +import {MenuItem} from "../../structures/ContextMenu"; function canCancel(eventStatus) { return eventStatus === EventStatus.QUEUED || eventStatus === EventStatus.NOT_SENT; diff --git a/src/components/views/context_menus/RoomTileContextMenu.js b/src/components/views/context_menus/RoomTileContextMenu.js index f770bb0d60..f5e68bd20b 100644 --- a/src/components/views/context_menus/RoomTileContextMenu.js +++ b/src/components/views/context_menus/RoomTileContextMenu.js @@ -32,7 +32,7 @@ import Modal from '../../../Modal'; import RoomListActions from '../../../actions/RoomListActions'; import RoomViewStore from '../../../stores/RoomViewStore'; import {sleep} from "../../../utils/promise"; -import {MenuItem, MenuItemCheckbox, MenuItemRadio} from "../../structures/ContextualMenu"; +import {MenuItem, MenuItemCheckbox, MenuItemRadio} from "../../structures/ContextMenu"; const RoomTagOption = ({active, onClick, src, srcSet, label}) => { const classes = classNames('mx_RoomTileContextMenu_tag_field', { diff --git a/src/components/views/context_menus/TagTileContextMenu.js b/src/components/views/context_menus/TagTileContextMenu.js index 3cfad4efe4..1af0c9ae66 100644 --- a/src/components/views/context_menus/TagTileContextMenu.js +++ b/src/components/views/context_menus/TagTileContextMenu.js @@ -22,7 +22,7 @@ import { _t } from '../../../languageHandler'; import dis from '../../../dispatcher'; import TagOrderActions from '../../../actions/TagOrderActions'; import sdk from '../../../index'; -import {MenuItem} from "../../structures/ContextualMenu"; +import {MenuItem} from "../../structures/ContextMenu"; export default class TagTileContextMenu extends React.Component { static propTypes = { diff --git a/src/components/views/context_menus/TopLeftMenu.js b/src/components/views/context_menus/TopLeftMenu.js index 2232090698..b9aabdc608 100644 --- a/src/components/views/context_menus/TopLeftMenu.js +++ b/src/components/views/context_menus/TopLeftMenu.js @@ -24,7 +24,7 @@ import Modal from "../../../Modal"; import SdkConfig from '../../../SdkConfig'; import { getHostingLink } from '../../../utils/HostingLink'; import MatrixClientPeg from '../../../MatrixClientPeg'; -import {MenuItem} from "../../structures/ContextualMenu"; +import {MenuItem} from "../../structures/ContextMenu"; export class TopLeftMenu extends React.Component { static propTypes = { diff --git a/src/components/views/context_menus/WidgetContextMenu.js b/src/components/views/context_menus/WidgetContextMenu.js index a8decd0f6a..1ec74b2e6c 100644 --- a/src/components/views/context_menus/WidgetContextMenu.js +++ b/src/components/views/context_menus/WidgetContextMenu.js @@ -17,7 +17,7 @@ limitations under the License. import React from 'react'; import PropTypes from 'prop-types'; import {_t} from '../../../languageHandler'; -import {MenuItem} from "../../structures/ContextualMenu"; +import {MenuItem} from "../../structures/ContextMenu"; export default class WidgetContextMenu extends React.Component { static propTypes = { diff --git a/src/components/views/dialogs/ShareDialog.js b/src/components/views/dialogs/ShareDialog.js index f34f2c0174..94723668ca 100644 --- a/src/components/views/dialogs/ShareDialog.js +++ b/src/components/views/dialogs/ShareDialog.js @@ -21,8 +21,8 @@ import sdk from '../../../index'; import { _t } from '../../../languageHandler'; import QRCode from 'qrcode-react'; import {RoomPermalinkCreator, makeGroupPermalink, makeUserPermalink} from "../../../utils/permalinks/Permalinks"; -import * as ContextualMenu from "../../structures/ContextualMenu"; -import {toRightOf} from "../../structures/ContextualMenu"; +import * as ContextualMenu from "../../structures/ContextMenu"; +import {toRightOf} from "../../structures/ContextMenu"; const socials = [ { diff --git a/src/components/views/elements/AppTile.js b/src/components/views/elements/AppTile.js index b2cf44a3d1..003103f9cb 100644 --- a/src/components/views/elements/AppTile.js +++ b/src/components/views/elements/AppTile.js @@ -35,7 +35,7 @@ import ActiveWidgetStore from '../../../stores/ActiveWidgetStore'; import classNames from 'classnames'; import {IntegrationManagers} from "../../../integrations/IntegrationManagers"; import SettingsStore, {SettingLevel} from "../../../settings/SettingsStore"; -import {aboveLeft, ContextMenu, ContextMenuButton} from "../../structures/ContextualMenu"; +import {aboveLeft, ContextMenu, ContextMenuButton} from "../../structures/ContextMenu"; import PersistedElement from "./PersistedElement"; const ALLOWED_APP_URL_SCHEMES = ['https:', 'http:']; diff --git a/src/components/views/elements/TagTile.js b/src/components/views/elements/TagTile.js index 636ea7a255..767980f0a0 100644 --- a/src/components/views/elements/TagTile.js +++ b/src/components/views/elements/TagTile.js @@ -30,7 +30,7 @@ import * as FormattingUtils from '../../../utils/FormattingUtils'; import FlairStore from '../../../stores/FlairStore'; import GroupStore from '../../../stores/GroupStore'; import TagOrderStore from '../../../stores/TagOrderStore'; -import {ContextMenu, ContextMenuButton, toRightOf} from "../../structures/ContextualMenu"; +import {ContextMenu, ContextMenuButton, toRightOf} from "../../structures/ContextMenu"; // A class for a child of TagPanel (possibly wrapped in a DNDTagTile) that represents // a thing to click on for the user to filter the visible rooms in the RoomList to: diff --git a/src/components/views/groups/GroupInviteTile.js b/src/components/views/groups/GroupInviteTile.js index 17e426a49d..bc861eb156 100644 --- a/src/components/views/groups/GroupInviteTile.js +++ b/src/components/views/groups/GroupInviteTile.js @@ -25,7 +25,7 @@ import dis from '../../../dispatcher'; import {_t} from '../../../languageHandler'; import classNames from 'classnames'; import MatrixClientPeg from "../../../MatrixClientPeg"; -import {ContextMenu, ContextMenuButton, toRightOf} from "../../structures/ContextualMenu"; +import {ContextMenu, ContextMenuButton, toRightOf} from "../../structures/ContextMenu"; export default createReactClass({ displayName: 'GroupInviteTile', diff --git a/src/components/views/messages/MessageActionBar.js b/src/components/views/messages/MessageActionBar.js index ba12bf21a0..bee03b09c2 100644 --- a/src/components/views/messages/MessageActionBar.js +++ b/src/components/views/messages/MessageActionBar.js @@ -23,7 +23,7 @@ import { _t } from '../../../languageHandler'; import sdk from '../../../index'; import dis from '../../../dispatcher'; import Modal from '../../../Modal'; -import {aboveLeft, ContextMenu, ContextMenuButton, useContextMenu} from '../../structures/ContextualMenu'; +import {aboveLeft, ContextMenu, ContextMenuButton, useContextMenu} from '../../structures/ContextMenu'; import { isContentActionable, canEditContent } from '../../../utils/EventUtils'; import {RoomContext} from "../../structures/RoomView"; diff --git a/src/components/views/messages/TextualBody.js b/src/components/views/messages/TextualBody.js index d88f6511d8..b82c0f3ffc 100644 --- a/src/components/views/messages/TextualBody.js +++ b/src/components/views/messages/TextualBody.js @@ -27,13 +27,13 @@ import sdk from '../../../index'; import Modal from '../../../Modal'; import dis from '../../../dispatcher'; import { _t } from '../../../languageHandler'; -import * as ContextualMenu from '../../structures/ContextualMenu'; +import * as ContextualMenu from '../../structures/ContextMenu'; import SettingsStore from "../../../settings/SettingsStore"; import ReplyThread from "../elements/ReplyThread"; import {pillifyLinks} from '../../../utils/pillify'; import {IntegrationManagers} from "../../../integrations/IntegrationManagers"; import {isPermalinkHost} from "../../../utils/permalinks/Permalinks"; -import {toRightOf} from "../../structures/ContextualMenu"; +import {toRightOf} from "../../structures/ContextMenu"; module.exports = createReactClass({ displayName: 'TextualBody', diff --git a/src/components/views/rooms/RoomTile.js b/src/components/views/rooms/RoomTile.js index 8214ffc71b..313f013de4 100644 --- a/src/components/views/rooms/RoomTile.js +++ b/src/components/views/rooms/RoomTile.js @@ -25,7 +25,7 @@ import dis from '../../../dispatcher'; import MatrixClientPeg from '../../../MatrixClientPeg'; import DMRoomMap from '../../../utils/DMRoomMap'; import sdk from '../../../index'; -import {ContextMenu, ContextMenuButton, toRightOf} from '../../structures/ContextualMenu'; +import {ContextMenu, ContextMenuButton, toRightOf} from '../../structures/ContextMenu'; import * as RoomNotifs from '../../../RoomNotifs'; import * as FormattingUtils from '../../../utils/FormattingUtils'; import ActiveRoomObserver from '../../../ActiveRoomObserver'; diff --git a/src/components/views/rooms/Stickerpicker.js b/src/components/views/rooms/Stickerpicker.js index eb3a35bb01..8a00725718 100644 --- a/src/components/views/rooms/Stickerpicker.js +++ b/src/components/views/rooms/Stickerpicker.js @@ -25,7 +25,7 @@ import ActiveWidgetStore from '../../../stores/ActiveWidgetStore'; import PersistedElement from "../elements/PersistedElement"; import {IntegrationManagers} from "../../../integrations/IntegrationManagers"; import SettingsStore from "../../../settings/SettingsStore"; -import {ContextMenu} from "../../structures/ContextualMenu"; +import {ContextMenu} from "../../structures/ContextMenu"; const widgetType = 'm.stickerpicker';