From 31f0a37ca2eeba6a6296787f2fcb33c4b26efebc Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 1 Mar 2022 16:51:05 -0700 Subject: [PATCH] Fix js-sdk imports (#7938) --- src/components/views/location/LocationShareMenu.tsx | 2 +- test/components/views/location/LocationShareMenu-test.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/location/LocationShareMenu.tsx b/src/components/views/location/LocationShareMenu.tsx index 3954b45083..0ef3efa1d2 100644 --- a/src/components/views/location/LocationShareMenu.tsx +++ b/src/components/views/location/LocationShareMenu.tsx @@ -15,7 +15,7 @@ limitations under the License. */ import React, { SyntheticEvent, useContext } from 'react'; -import { Room } from 'matrix-js-sdk'; +import { Room } from 'matrix-js-sdk/src/models/room'; import MatrixClientContext from '../../../contexts/MatrixClientContext'; import ContextMenu, { AboveLeftOf } from '../../structures/ContextMenu'; diff --git a/test/components/views/location/LocationShareMenu-test.tsx b/test/components/views/location/LocationShareMenu-test.tsx index 29184a39b3..fdf6b42158 100644 --- a/test/components/views/location/LocationShareMenu-test.tsx +++ b/test/components/views/location/LocationShareMenu-test.tsx @@ -16,7 +16,7 @@ limitations under the License. import React from 'react'; import { mount } from 'enzyme'; -import { RoomMember } from 'matrix-js-sdk'; +import { RoomMember } from 'matrix-js-sdk/src/models/room-member'; import '../../../skinned-sdk'; import LocationShareMenu from '../../../../src/components/views/location/LocationShareMenu';