mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 04:00:55 +08:00
Form Migrations: Button (#23019)
* Update legacy exports and fix Type errors * Remove Button and LinkButton from Forms namespace * Fix errors * Update snapshots * Move Legacy button * Migrate more Buttons * Remove legacy button dependency * Move button up * Remove legacy button * Update Snapshots * Fix ComponentSize issues * Switch primary button * Switch primary * Add classNames and fix some angular directive issues * Fix failing build and remove log Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
This commit is contained in:
@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
|
||||
import { css } from 'emotion';
|
||||
import uniqueId from 'lodash/uniqueId';
|
||||
import { DataSourceSettings } from '@grafana/data';
|
||||
import { Button } from '../Button/Button';
|
||||
import { Button } from '../Button';
|
||||
import { FormField } from '../FormField/FormField';
|
||||
import { SecretFormField } from '../SecretFormFied/SecretFormField';
|
||||
import { stylesFactory } from '../../themes';
|
||||
@ -76,7 +76,7 @@ const CustomHeaderRow: React.FC<CustomHeaderRowProps> = ({ header, onBlur, onCha
|
||||
onChange={e => onChange({ ...header, value: e.target.value })}
|
||||
onBlur={onBlur}
|
||||
/>
|
||||
<Button variant="transparent" size="xs" onClick={_e => onRemove(header.id)}>
|
||||
<Button variant="destructive" size="xs" onClick={_e => onRemove(header.id)}>
|
||||
<i className="fa fa-trash" />
|
||||
</Button>
|
||||
</div>
|
||||
@ -202,7 +202,7 @@ export class CustomHeadersSettings extends PureComponent<Props, State> {
|
||||
</div>
|
||||
<div className="gf-form">
|
||||
<Button
|
||||
variant="inverse"
|
||||
variant="secondary"
|
||||
size="xs"
|
||||
onClick={e => {
|
||||
this.onHeaderAdd();
|
||||
|
Reference in New Issue
Block a user