From 8a0398b632dff1a5f6cfd4bf95d78854aeadc60e Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 9 Dec 2021 16:09:20 -0700 Subject: [PATCH] Fix remaining import ordering requirements --- src/components/views/elements/TextWithTooltip.tsx | 1 + src/components/views/elements/TooltipTarget.tsx | 1 + src/components/views/settings/ProfileSettings.tsx | 2 +- test/components/views/rooms/RoomPreviewBar-test.tsx | 13 ++++--------- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/components/views/elements/TextWithTooltip.tsx b/src/components/views/elements/TextWithTooltip.tsx index 79ddabcc90..d5a37e16e7 100644 --- a/src/components/views/elements/TextWithTooltip.tsx +++ b/src/components/views/elements/TextWithTooltip.tsx @@ -16,6 +16,7 @@ import React from 'react'; import classNames from 'classnames'; + import { replaceableComponent } from "../../../utils/replaceableComponent"; import TooltipTarget from './TooltipTarget'; diff --git a/src/components/views/elements/TooltipTarget.tsx b/src/components/views/elements/TooltipTarget.tsx index d7f18fba51..22da867887 100644 --- a/src/components/views/elements/TooltipTarget.tsx +++ b/src/components/views/elements/TooltipTarget.tsx @@ -15,6 +15,7 @@ limitations under the License. */ import React, { useState, HTMLAttributes } from 'react'; + import Tooltip, { ITooltipProps } from './Tooltip'; interface IProps extends HTMLAttributes, Omit { diff --git a/src/components/views/settings/ProfileSettings.tsx b/src/components/views/settings/ProfileSettings.tsx index 6386961ec7..b3e6eb3131 100644 --- a/src/components/views/settings/ProfileSettings.tsx +++ b/src/components/views/settings/ProfileSettings.tsx @@ -28,8 +28,8 @@ import { replaceableComponent } from "../../../utils/replaceableComponent"; import { mediaFromMxc } from "../../../customisations/Media"; import AccessibleButton from '../elements/AccessibleButton'; import AvatarSetting from './AvatarSetting'; - import ExternalLink from '../elements/ExternalLink'; + interface IState { userId?: string; originalDisplayName?: string; diff --git a/test/components/views/rooms/RoomPreviewBar-test.tsx b/test/components/views/rooms/RoomPreviewBar-test.tsx index 98cd47102e..0a255e816f 100644 --- a/test/components/views/rooms/RoomPreviewBar-test.tsx +++ b/test/components/views/rooms/RoomPreviewBar-test.tsx @@ -21,17 +21,12 @@ import { findRenderedDOMComponentWithClass, act, } from 'react-dom/test-utils'; - -import "../../../skinned-sdk"; - -import { stubClient } from '../../../test-utils'; - -import { MatrixClientPeg } from '../../../../src/MatrixClientPeg'; - -import DMRoomMap from '../../../../src/utils/DMRoomMap'; - import { Room, RoomMember, MatrixError, IContent } from 'matrix-js-sdk'; +import "../../../skinned-sdk"; +import { stubClient } from '../../../test-utils'; +import { MatrixClientPeg } from '../../../../src/MatrixClientPeg'; +import DMRoomMap from '../../../../src/utils/DMRoomMap'; import RoomPreviewBar from '../../../../src/components/views/rooms/RoomPreviewBar'; jest.mock('../../../../src/IdentityAuthClient', () => {