Move Switch component to grafana-ui

This commit is contained in:
Dominik Prokop
2019-01-24 15:35:50 +01:00
parent ce440b85fc
commit 1d3122632f
7 changed files with 15 additions and 15 deletions

View File

@@ -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>