Skip to content

Commit

Permalink
fix PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwizp committed Apr 13, 2020
1 parent 5f264c9 commit c09e9dc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import React from 'react';
import { shallow } from 'enzyme';

import { Header } from '../header';
import { Header } from './header';

describe('Header', () => {
test('should render normally', () => {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -98,27 +98,27 @@ export class Table extends PureComponent<TableProps> {
name: '',
actions: [
{
type: 'button',
type: 'icon',
name: i18n.translate('kbn.management.editIndexPattern.scripted.table.editHeader', {
defaultMessage: 'Edit',
}),
description: i18n.translate(
'kbn.management.editIndexPattern.scripted.table.editDescription',
{ defaultMessage: 'Edit this field' }
),
// icon: 'pencil',
icon: 'pencil',
onClick: editField,
},
{
type: 'button',
type: 'icon',
name: i18n.translate('kbn.management.editIndexPattern.scripted.table.deleteHeader', {
defaultMessage: 'Delete',
}),
description: i18n.translate(
'kbn.management.editIndexPattern.scripted.table.deleteDescription',
{ defaultMessage: 'Delete this field' }
),
// icon: 'trash',
icon: 'trash',
color: 'danger',
onClick: deleteField,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ interface ScriptedFieldsTableProps {
redirectToRoute: Function;
getRouteHref: Function;
};
onRemoveField?: Function;
onRemoveField?: () => void;
}

interface ScriptedFieldsTableState {
Expand Down

0 comments on commit c09e9dc

Please sign in to comment.