Files
ThreadNet-Web/src/components/views/dialogs/IntegrationsImpossibleDialog.tsx
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.4 KiB
TypeScript
Raw Normal View History

/*
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.
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.
*/
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";
import BaseDialog from "./BaseDialog";
import DialogButtons from "../elements/DialogButtons";
interface IProps {
onFinished(): void;
}
2021-09-05 16:11:10 +02:00
export default class IntegrationsImpossibleDialog extends React.Component<IProps> {
private onAcknowledgeClick = (): void => {
this.props.onFinished();
};
public render(): React.ReactNode {
2020-07-10 19:07:11 +01:00
const brand = SdkConfig.get().brand;
return (
2021-04-27 17:23:27 +02:00
<BaseDialog
className="mx_IntegrationsImpossibleDialog"
hasCancel={false}
onFinished={this.props.onFinished}
title={_t("integrations|impossible_dialog_title")}
2021-04-27 17:23:27 +02:00
>
<div className="mx_IntegrationsImpossibleDialog_content">
<p>{_t("integrations|impossible_dialog_description", { brand })}</p>
</div>
<DialogButtons
primaryButton={_t("action|ok")}
2021-09-05 16:11:10 +02:00
onPrimaryButtonClick={this.onAcknowledgeClick}
hasCancel={false}
/>
</BaseDialog>
);
}
}