Use Capabilities type from js-sdk (#10535)

This commit is contained in:
Hugh Nimmo-Smith 2023-04-11 10:46:11 +01:00 committed by GitHub
parent 4d5744008e
commit 692c07ef0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,7 @@ import {
IMSC3882GetLoginTokenCapability,
IServerVersions,
UNSTABLE_MSC3882_CAPABILITY,
Capabilities,
} from "matrix-js-sdk/src/matrix";
import { _t } from "../../../../languageHandler";
@ -28,8 +29,7 @@ import SettingsSubsection from "../shared/SettingsSubsection";
interface IProps {
onShowQr: () => void;
versions?: IServerVersions;
// we can't use the capabilities type from the js-sdk because it isn't exported
capabilities?: Record<string, any>;
capabilities?: Capabilities;
}
export default class LoginWithQRSection extends React.Component<IProps> {