Commit 36dc70e1 by Torkel Ödegaard Committed by GitHub

Prettier: Fixes to files that came in after main upgrade (#30410)

parent de7d163d
......@@ -156,7 +156,7 @@ export class QueryRow extends PureComponent<QueryRowProps, QueryRowState> {
{QueryEditor}
{DatasourceCheatsheet && (
<HelpToggle>
<DatasourceCheatsheet onClickExample={query => this.onChange(query)} datasource={datasourceInstance} />
<DatasourceCheatsheet onClickExample={(query) => this.onChange(query)} datasource={datasourceInstance} />
</HelpToggle>
)}
</>
......
......@@ -16,7 +16,7 @@ export const HelpToggle: React.FunctionComponent = ({ children }) => {
return (
<>
<button className="gf-form-label query-keyword pointer" onClick={_ => setIsHelpVisible(!isHelpVisible)}>
<button className="gf-form-label query-keyword pointer" onClick={(_) => setIsHelpVisible(!isHelpVisible)}>
Help
<Icon name={isHelpVisible ? 'angle-down' : 'angle-right'} />
</button>
......
......@@ -229,7 +229,7 @@ export class QueryEditorRow extends PureComponent<Props, State> {
};
onToggleHelp = () => {
this.setState(state => ({
this.setState((state) => ({
showingHelp: !state.showingHelp,
}));
};
......@@ -336,7 +336,10 @@ export class QueryEditorRow extends PureComponent<Props, State> {
<ErrorBoundaryAlert>
{showingHelp && DatasourceCheatsheet && (
<InfoBox onDismiss={this.onToggleHelp}>
<DatasourceCheatsheet onClickExample={query => this.onClickExample(query)} datasource={datasource} />
<DatasourceCheatsheet
onClickExample={(query) => this.onClickExample(query)}
datasource={datasource}
/>
</InfoBox>
)}
{editor}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment