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> { ...@@ -156,7 +156,7 @@ export class QueryRow extends PureComponent<QueryRowProps, QueryRowState> {
{QueryEditor} {QueryEditor}
{DatasourceCheatsheet && ( {DatasourceCheatsheet && (
<HelpToggle> <HelpToggle>
<DatasourceCheatsheet onClickExample={query => this.onChange(query)} datasource={datasourceInstance} /> <DatasourceCheatsheet onClickExample={(query) => this.onChange(query)} datasource={datasourceInstance} />
</HelpToggle> </HelpToggle>
)} )}
</> </>
......
...@@ -16,7 +16,7 @@ export const HelpToggle: React.FunctionComponent = ({ children }) => { ...@@ -16,7 +16,7 @@ export const HelpToggle: React.FunctionComponent = ({ children }) => {
return ( return (
<> <>
<button className="gf-form-label query-keyword pointer" onClick={_ => setIsHelpVisible(!isHelpVisible)}> <button className="gf-form-label query-keyword pointer" onClick={(_) => setIsHelpVisible(!isHelpVisible)}>
Help Help
<Icon name={isHelpVisible ? 'angle-down' : 'angle-right'} /> <Icon name={isHelpVisible ? 'angle-down' : 'angle-right'} />
</button> </button>
......
...@@ -229,7 +229,7 @@ export class QueryEditorRow extends PureComponent<Props, State> { ...@@ -229,7 +229,7 @@ export class QueryEditorRow extends PureComponent<Props, State> {
}; };
onToggleHelp = () => { onToggleHelp = () => {
this.setState(state => ({ this.setState((state) => ({
showingHelp: !state.showingHelp, showingHelp: !state.showingHelp,
})); }));
}; };
...@@ -336,7 +336,10 @@ export class QueryEditorRow extends PureComponent<Props, State> { ...@@ -336,7 +336,10 @@ export class QueryEditorRow extends PureComponent<Props, State> {
<ErrorBoundaryAlert> <ErrorBoundaryAlert>
{showingHelp && DatasourceCheatsheet && ( {showingHelp && DatasourceCheatsheet && (
<InfoBox onDismiss={this.onToggleHelp}> <InfoBox onDismiss={this.onToggleHelp}>
<DatasourceCheatsheet onClickExample={query => this.onClickExample(query)} datasource={datasource} /> <DatasourceCheatsheet
onClickExample={(query) => this.onClickExample(query)}
datasource={datasource}
/>
</InfoBox> </InfoBox>
)} )}
{editor} {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