add spaces to TileErrorBoundary (#9012)

pull/28217/head
Kim Brose 2022-07-11 14:20:36 +02:00 committed by GitHub
parent a9d6896502
commit 3855c44299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 6 deletions

View File

@ -76,16 +76,22 @@ export default class TileErrorBoundary extends React.Component<IProps, IState> {
let submitLogsButton;
if (SdkConfig.get().bug_report_endpoint_url) {
submitLogsButton = <AccessibleButton kind="link" onClick={this.onBugReport}>
submitLogsButton = <>
&nbsp;
<AccessibleButton kind="link" onClick={this.onBugReport}>
{ _t("Submit logs") }
</AccessibleButton>;
</AccessibleButton>
</>;
}
let viewSourceButton;
if (mxEvent && SettingsStore.getValue("developerMode")) {
viewSourceButton = <AccessibleButton onClick={this.onViewSource} kind="link">
viewSourceButton = <>
&nbsp;
<AccessibleButton onClick={this.onViewSource} kind="link">
{ _t("View Source") }
</AccessibleButton>;
</AccessibleButton>
</>;
}
return (<li className={classNames(classes)} data-layout={this.props.layout}>