2019-11-20 20:40:39 -07:00
|
|
|
/*
|
2024-09-09 14:57:16 +01:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2020-07-10 19:07:11 +01:00
|
|
|
Copyright 2019, 2020 The Matrix.org Foundation C.I.C.
|
2019-11-20 20:40:39 -07:00
|
|
|
|
2024-09-09 14:57:16 +01:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2019-11-20 20:40:39 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import React from "react";
|
2021-10-22 17:23:32 -05:00
|
|
|
|
2021-06-29 13:11:58 +01:00
|
|
|
import { _t } from "../../../languageHandler";
|
2020-07-10 19:07:11 +01:00
|
|
|
import SdkConfig from "../../../SdkConfig";
|
2021-11-08 11:27:52 +01:00
|
|
|
import BaseDialog from "./BaseDialog";
|
|
|
|
|
import DialogButtons from "../elements/DialogButtons";
|
2019-11-20 20:40:39 -07:00
|
|
|
|
2023-02-28 10:31:48 +00:00
|
|
|
interface IProps {
|
|
|
|
|
onFinished(): void;
|
|
|
|
|
}
|
2021-09-05 16:11:10 +02:00
|
|
|
|
|
|
|
|
export default class IntegrationsImpossibleDialog extends React.Component<IProps> {
|
|
|
|
|
private onAcknowledgeClick = (): void => {
|
2019-11-20 20:40:39 -07:00
|
|
|
this.props.onFinished();
|
|
|
|
|
};
|
|
|
|
|
|
2023-02-13 17:01:43 +00:00
|
|
|
public render(): React.ReactNode {
|
2020-07-10 19:07:11 +01:00
|
|
|
const brand = SdkConfig.get().brand;
|
2019-11-20 20:40:39 -07:00
|
|
|
|
|
|
|
|
return (
|
2021-04-27 17:23:27 +02:00
|
|
|
<BaseDialog
|
|
|
|
|
className="mx_IntegrationsImpossibleDialog"
|
|
|
|
|
hasCancel={false}
|
|
|
|
|
onFinished={this.props.onFinished}
|
2023-10-03 19:17:26 +01:00
|
|
|
title={_t("integrations|impossible_dialog_title")}
|
2021-04-27 17:23:27 +02:00
|
|
|
>
|
2019-11-20 20:40:39 -07:00
|
|
|
<div className="mx_IntegrationsImpossibleDialog_content">
|
2023-10-03 19:17:26 +01:00
|
|
|
<p>{_t("integrations|impossible_dialog_description", { brand })}</p>
|
2019-11-20 20:40:39 -07:00
|
|
|
</div>
|
|
|
|
|
<DialogButtons
|
2023-08-22 20:55:15 +01:00
|
|
|
primaryButton={_t("action|ok")}
|
2021-09-05 16:11:10 +02:00
|
|
|
onPrimaryButtonClick={this.onAcknowledgeClick}
|
2019-11-20 20:40:39 -07:00
|
|
|
hasCancel={false}
|
|
|
|
|
/>
|
|
|
|
|
</BaseDialog>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|