Delint
This commit is contained in:
parent
1ed316851a
commit
6dd3631a17
5 changed files with 22 additions and 23 deletions
|
@ -193,7 +193,7 @@ const ExportDialog: React.FC<IProps> = ({ room, onFinished }) => {
|
|||
const exportTypeOptions = Object.keys(exportTypes).map((type) => {
|
||||
return (
|
||||
<option key={type} value={type}>
|
||||
{textForType(type)}
|
||||
{ textForType(type) }
|
||||
</option>
|
||||
);
|
||||
});
|
||||
|
@ -229,7 +229,7 @@ const ExportDialog: React.FC<IProps> = ({ room, onFinished }) => {
|
|||
<p>{ _t("The export was cancelled successfully") }</p>
|
||||
|
||||
<DialogButtons
|
||||
primaryButton={ _t("Okay") }
|
||||
primaryButton={_t("Okay")}
|
||||
hasCancel={false}
|
||||
onPrimaryButtonClick={onFinished}
|
||||
/>
|
||||
|
@ -331,9 +331,9 @@ const ExportDialog: React.FC<IProps> = ({ room, onFinished }) => {
|
|||
fixedWidth={true}
|
||||
>
|
||||
<p>
|
||||
{_t(
|
||||
{ _t(
|
||||
"Are you sure you want to stop exporting your data? If you do, you'll need to start over.",
|
||||
)}
|
||||
) }
|
||||
</p>
|
||||
<DialogButtons
|
||||
primaryButton={_t("Stop")}
|
||||
|
|
|
@ -125,7 +125,6 @@ export function presentableTextForFile(content: IContent, withSize = true): stri
|
|||
interface IProps extends IBodyProps {
|
||||
/* whether or not to show the default placeholder for the file. Defaults to true. */
|
||||
showGenericPlaceholder: boolean;
|
||||
forExport?: boolean;
|
||||
}
|
||||
|
||||
interface IState {
|
||||
|
@ -174,9 +173,9 @@ export default class MFileBody extends React.Component<IProps, IState> {
|
|||
placeholder = (
|
||||
<div className="mx_MFileBody_info">
|
||||
<span className="mx_MFileBody_info_icon">
|
||||
{this.props.forExport ?
|
||||
{ this.props.forExport ?
|
||||
<img alt="Attachment" className="mx_export_attach_icon" src="icons/attach.svg" />
|
||||
: null}
|
||||
: null }
|
||||
</span>
|
||||
<span className="mx_MFileBody_info_filename">
|
||||
{ presentableTextForFile(content, false) }
|
||||
|
|
|
@ -287,8 +287,8 @@ const RoomSummaryCard: React.FC<IProps> = ({ room, onClose }) => {
|
|||
<Button className="mx_RoomSummaryCard_icon_settings" onClick={onRoomSettingsClick}>
|
||||
{ _t("Room settings") }
|
||||
</Button>
|
||||
<Button className="mx_RoomSummaryCard_icon_export" onClick = {onRoomExportClick}>
|
||||
{_t("Export chat")}
|
||||
<Button className="mx_RoomSummaryCard_icon_export" onClick={onRoomExportClick}>
|
||||
{ _t("Export chat") }
|
||||
</Button>
|
||||
</Group>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue