Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

add spaces to TileErrorBoundary #9012

Merged
merged 8 commits into from
Jul 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions src/components/views/messages/TileErrorBoundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}>
{ _t("Submit logs") }
</AccessibleButton>;
submitLogsButton = <>
&nbsp;
<AccessibleButton kind="link" onClick={this.onBugReport}>
{ _t("Submit logs") }
</AccessibleButton>
</>;
}

let viewSourceButton;
if (mxEvent && SettingsStore.getValue("developerMode")) {
viewSourceButton = <AccessibleButton onClick={this.onViewSource} kind="link">
{ _t("View Source") }
</AccessibleButton>;
viewSourceButton = <>
&nbsp;
<AccessibleButton onClick={this.onViewSource} kind="link">
{ _t("View Source") }
</AccessibleButton>
</>;
}

return (<li className={classNames(classes)} data-layout={this.props.layout}>
Expand Down