Apply prettier formatting

This commit is contained in:
Michael Weimann 2022-12-12 12:24:14 +01:00
parent 1cac306093
commit 526645c791
No known key found for this signature in database
GPG key ID: 53F535A266BB9584
1576 changed files with 65385 additions and 62478 deletions

View file

@ -15,10 +15,10 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import React, { ReactNode, KeyboardEvent } from 'react';
import React, { ReactNode, KeyboardEvent } from "react";
import classNames from "classnames";
import { _t } from '../../../languageHandler';
import { _t } from "../../../languageHandler";
import { IDialogProps } from "./IDialogProps";
import BaseDialog from "./BaseDialog";
import DialogButtons from "../elements/DialogButtons";
@ -35,8 +35,8 @@ interface IProps extends IDialogProps {
export default class InfoDialog extends React.Component<IProps> {
static defaultProps = {
title: '',
description: '',
title: "",
description: "",
hasCloseButton: false,
};
@ -50,18 +50,21 @@ export default class InfoDialog extends React.Component<IProps> {
className="mx_InfoDialog"
onFinished={this.props.onFinished}
title={this.props.title}
contentId='mx_Dialog_content'
contentId="mx_Dialog_content"
hasCancel={this.props.hasCloseButton}
onKeyDown={this.props.onKeyDown}
fixedWidth={this.props.fixedWidth}
>
<div className={classNames("mx_Dialog_content", this.props.className)} id="mx_Dialog_content">
{ this.props.description }
{this.props.description}
</div>
{ this.props.button !== false && <DialogButtons primaryButton={this.props.button || _t('OK')}
onPrimaryButtonClick={this.onFinished}
hasCancel={false}
/> }
{this.props.button !== false && (
<DialogButtons
primaryButton={this.props.button || _t("OK")}
onPrimaryButtonClick={this.onFinished}
hasCancel={false}
/>
)}
</BaseDialog>
);
}