Fix remaining import ordering requirements

This commit is contained in:
Travis Ralston 2021-12-09 16:09:20 -07:00
parent 9cc8a6d24a
commit 8a0398b632
4 changed files with 7 additions and 10 deletions

View file

@ -16,6 +16,7 @@
import React from 'react'; import React from 'react';
import classNames from 'classnames'; import classNames from 'classnames';
import { replaceableComponent } from "../../../utils/replaceableComponent"; import { replaceableComponent } from "../../../utils/replaceableComponent";
import TooltipTarget from './TooltipTarget'; import TooltipTarget from './TooltipTarget';

View file

@ -15,6 +15,7 @@ limitations under the License.
*/ */
import React, { useState, HTMLAttributes } from 'react'; import React, { useState, HTMLAttributes } from 'react';
import Tooltip, { ITooltipProps } from './Tooltip'; import Tooltip, { ITooltipProps } from './Tooltip';
interface IProps extends HTMLAttributes<HTMLSpanElement>, Omit<ITooltipProps, 'visible'> { interface IProps extends HTMLAttributes<HTMLSpanElement>, Omit<ITooltipProps, 'visible'> {

View file

@ -28,8 +28,8 @@ import { replaceableComponent } from "../../../utils/replaceableComponent";
import { mediaFromMxc } from "../../../customisations/Media"; import { mediaFromMxc } from "../../../customisations/Media";
import AccessibleButton from '../elements/AccessibleButton'; import AccessibleButton from '../elements/AccessibleButton';
import AvatarSetting from './AvatarSetting'; import AvatarSetting from './AvatarSetting';
import ExternalLink from '../elements/ExternalLink'; import ExternalLink from '../elements/ExternalLink';
interface IState { interface IState {
userId?: string; userId?: string;
originalDisplayName?: string; originalDisplayName?: string;

View file

@ -21,17 +21,12 @@ import {
findRenderedDOMComponentWithClass, findRenderedDOMComponentWithClass,
act, act,
} from 'react-dom/test-utils'; } 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 { 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'; import RoomPreviewBar from '../../../../src/components/views/rooms/RoomPreviewBar';
jest.mock('../../../../src/IdentityAuthClient', () => { jest.mock('../../../../src/IdentityAuthClient', () => {