From 6d303cc990f2f18d6a9993eea14da0ab882cbbf2 Mon Sep 17 00:00:00 2001 From: Kerry Date: Thu, 3 Mar 2022 16:43:15 +0100 Subject: [PATCH 1/8] Revert "replace all require(svgs) with esm import (#7948)" This reverts commit 61cd463a3b57917d9206c98e6e75fc5b57033102. --- src/components/structures/FileDropTarget.tsx | 3 +-- src/components/structures/GroupView.js | 22 +++++++------------ src/components/structures/MyGroups.js | 3 +-- src/components/structures/RoomStatusBar.tsx | 3 +-- src/components/structures/UserMenu.tsx | 3 +-- src/components/views/avatars/WidgetAvatar.tsx | 15 +++++-------- .../GroupInviteTileContextMenu.js | 3 +-- .../dialogs/AddExistingToSpaceDialog.tsx | 3 +-- .../CreateSpaceFromCommunityDialog.tsx | 3 +-- .../views/dialogs/ForwardDialog.tsx | 3 +-- src/components/views/dialogs/InviteDialog.tsx | 11 ++++------ .../views/dialogs/ModalWidgetDialog.tsx | 4 ++-- .../views/dialogs/UploadConfirmDialog.tsx | 3 +-- .../security/SetupEncryptionDialog.tsx | 6 ++--- src/components/views/elements/AddressTile.tsx | 3 +-- src/components/views/elements/AppWarning.tsx | 4 +--- src/components/views/elements/SSOButtons.tsx | 18 +++++---------- .../views/groups/GroupMemberList.js | 3 +-- src/components/views/groups/GroupRoomInfo.js | 3 +-- src/components/views/groups/GroupRoomList.js | 3 +-- src/components/views/messages/MAudioBody.tsx | 3 +-- src/components/views/messages/MImageBody.tsx | 3 +-- .../views/messages/MStickerBody.tsx | 3 +-- src/components/views/messages/MVideoBody.tsx | 3 +-- .../views/messages/MVoiceMessageBody.tsx | 3 +-- .../views/right_panel/EncryptionPanel.tsx | 3 +-- src/components/views/rooms/EntityTile.tsx | 3 +-- .../views/rooms/LinkPreviewGroup.tsx | 3 +-- src/components/views/rooms/MemberList.tsx | 3 +-- .../views/rooms/MessageComposer.tsx | 3 +-- src/components/views/rooms/ReplyPreview.tsx | 3 +-- .../tabs/room/SecurityRoomSettingsTab.tsx | 3 +-- .../tabs/user/GeneralUserSettingsTab.tsx | 3 +-- 33 files changed, 54 insertions(+), 104 deletions(-) diff --git a/src/components/structures/FileDropTarget.tsx b/src/components/structures/FileDropTarget.tsx index 72a86978d92..6032de6e583 100644 --- a/src/components/structures/FileDropTarget.tsx +++ b/src/components/structures/FileDropTarget.tsx @@ -17,7 +17,6 @@ limitations under the License. import React, { useEffect, useState } from "react"; import { _t } from "../../languageHandler"; -import FileDropSvg from '../../../res/img/upload-big.svg'; interface IProps { parent: HTMLElement; @@ -110,7 +109,7 @@ const FileDropTarget: React.FC = ({ parent, onFileDrop }) => { if (state.dragging) { return
- + { _t("Drop file here to upload") }
; } diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js index bfeec99ae7c..338e8596649 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -46,12 +46,6 @@ import { createSpaceFromCommunity } from "../../utils/space"; import { Action } from "../../dispatcher/actions"; import { RightPanelPhases } from "../../stores/right-panel/RightPanelStorePhases"; import { UPDATE_EVENT } from "../../stores/AsyncStore"; -import CreateRoomSvg from '../../../res/img/icons-create-room.svg'; -import CancelSmallSvg from '../../../res/img/cancel-small.svg'; -import CancelSvg from '../../../res/img/cancel.svg'; -import ExternalLinkSvg from '../../../res/img/external-link.svg'; -import AddRoomSvg from '../../../res/img/icons-room-add.svg'; -import CameraSvg from '../../../res/img/camera.svg'; const LONG_DESC_PLACEHOLDER = _td( `

HTML for your community's page

@@ -141,7 +135,7 @@ class CategoryRoomList extends React.Component { ( - +
{ _t('Add a Room') }
@@ -241,7 +235,7 @@ class FeaturedRoom extends React.Component { const deleteButton = this.props.editing ? Delete - +
{ _t('Add a User') }
@@ -392,7 +386,7 @@ class FeaturedUser extends React.Component { const deleteButton = this.props.editing ? Delete - + ; } @@ -931,7 +925,7 @@ export default class GroupView extends React.Component { onClick={this._onAddRoomsClick} >
- +
{ _t('Add rooms to this community') } @@ -1263,7 +1257,7 @@ export default class GroupView extends React.Component {