Relative imports from the js-sdk

Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Germain 2021-08-25 08:56:21 +01:00 committed by GitHub
parent 617e7deff5
commit da127ecb76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ limitations under the License.
*/
import React, { createRef } from 'react';
import { RoomMember } from 'matrix-js-sdk/src';
import { RoomMember } from "matrix-js-sdk/src/models/room-member";
import { _t } from '../../../languageHandler';
import { formatDate } from '../../../DateUtils';

View File

@ -73,7 +73,7 @@ export default class ChangeAvatar extends React.Component<IProps, IState> {
// TODO: [REACT-WARNING] Replace with appropriate lifecycle event
// eslint-disable-next-line
public UNSAFE_componentWillReceiveProps(newProps): void {
public UNSAFE_componentWillReceiveProps(newProps: IProps): void {
if (this.avatarSet) {
// don't clobber what the user has just set
return;