mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Prettier: Upgrade to 2 (#30387)
* Updated package json but not updated source files * Update eslint plugin * updated files
This commit is contained in:
@@ -60,7 +60,7 @@ export const DataLink = (props: Props) => {
|
||||
variant={'destructive'}
|
||||
title="Remove field"
|
||||
icon="times"
|
||||
onClick={event => {
|
||||
onClick={(event) => {
|
||||
event.preventDefault();
|
||||
onDelete();
|
||||
}}
|
||||
@@ -74,7 +74,7 @@ export const DataLink = (props: Props) => {
|
||||
<DataLinkInput
|
||||
placeholder={showInternalLink ? '${__value.raw}' : 'http://example.com/${__value.raw}'}
|
||||
value={value.url || ''}
|
||||
onChange={newValue =>
|
||||
onChange={(newValue) =>
|
||||
onChange({
|
||||
...value,
|
||||
url: newValue,
|
||||
@@ -109,7 +109,7 @@ export const DataLink = (props: Props) => {
|
||||
<DataSourcePicker
|
||||
tracing={true}
|
||||
// Uid and value should be always set in the db and so in the items.
|
||||
onChange={ds => {
|
||||
onChange={(ds) => {
|
||||
onChange({
|
||||
...value,
|
||||
datasourceUid: ds.uid,
|
||||
|
||||
Reference in New Issue
Block a user