Skip to content

Commit 2ee27a0

Browse files
refactor(QueryExplain): apply prettier fixes
1 parent baf552a commit 2ee27a0

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

src/containers/Tenant/QueryEditor/QueryExplain/QueryExplain.js

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function GraphRoot(props) {
7474
paranoid.current = getCompactTopology('graphRoot', data, opts);
7575
paranoid.current.renderCompactTopology();
7676
}
77-
}
77+
};
7878

7979
useEffect(() => {
8080
render();
@@ -134,11 +134,7 @@ function QueryExplain(props) {
134134
};
135135

136136
const renderStub = () => {
137-
return (
138-
<div className={b('text-message')}>
139-
There is no explanation for the request
140-
</div>
141-
);
137+
return <div className={b('text-message')}>There is no explanation for the request</div>;
142138
};
143139

144140
const hasContent = () => {
@@ -237,11 +233,7 @@ function QueryExplain(props) {
237233
message = error;
238234
}
239235

240-
return (
241-
<div className={b('text-message')}>
242-
{message}
243-
</div>
244-
);
236+
return <div className={b('text-message')}>{message}</div>;
245237
};
246238

247239
const renderContent = () => {
@@ -292,7 +284,9 @@ function QueryExplain(props) {
292284
)}
293285
</div>
294286
<div className={b('controls-left')}>
295-
<EnableFullscreenButton disabled={Boolean(props.error) || !hasContent()} />
287+
<EnableFullscreenButton
288+
disabled={Boolean(props.error) || !hasContent()}
289+
/>
296290
<PaneVisibilityToggleButtons
297291
onCollapse={props.onCollapseResults}
298292
onExpand={props.onExpandResults}

0 commit comments

Comments
 (0)