1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Replace type declaration in Registration.tsx

This commit is contained in:
Travis Ralston
2021-03-18 14:45:14 -06:00
parent b69d9e8c33
commit 720ac9d837

View File

@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import Matrix from 'matrix-js-sdk'; import {createClient} from 'matrix-js-sdk/src/matrix';
import React, {ReactNode} from 'react'; import React, {ReactNode} from 'react';
import {MatrixClient} from "matrix-js-sdk/src/client"; import {MatrixClient} from "matrix-js-sdk/src/client";
@@ -181,7 +181,7 @@ export default class Registration extends React.Component<IProps, IState> {
} }
const {hsUrl, isUrl} = serverConfig; const {hsUrl, isUrl} = serverConfig;
const cli = Matrix.createClient({ const cli = createClient({
baseUrl: hsUrl, baseUrl: hsUrl,
idBaseUrl: isUrl, idBaseUrl: isUrl,
}); });