mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Move Switch component to grafana-ui
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import React, { FC } from 'react';
|
||||
import { FormLabel } from '@grafana/ui';
|
||||
import { Switch } from '../../../core/components/Switch/Switch';
|
||||
import { FormLabel, Switch } from '@grafana/ui';
|
||||
|
||||
export interface Props {
|
||||
dataSourceName: string;
|
||||
@@ -31,6 +30,8 @@ const BasicSettings: FC<Props> = ({ dataSourceName, isDefault, onDefaultChange,
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
{/*
|
||||
//@ts-ignore */}
|
||||
<Switch label="Default" checked={isDefault} onChange={event => onDefaultChange(event.target.checked)} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user