From 446755fc59e2b057ab1aacfee41e2354ad68899e Mon Sep 17 00:00:00 2001 From: Matt Kime Date: Wed, 4 Aug 2021 11:54:22 -0500 Subject: [PATCH] add spacer to form layout, move types to type file --- .../index_pattern_editor_flyout_content.tsx | 11 +++-------- src/plugins/index_pattern_editor/public/types.ts | 9 +++++++++ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/plugins/index_pattern_editor/public/components/index_pattern_editor_flyout_content.tsx b/src/plugins/index_pattern_editor/public/components/index_pattern_editor_flyout_content.tsx index 56789c0838ccb..d78790d562f6c 100644 --- a/src/plugins/index_pattern_editor/public/components/index_pattern_editor_flyout_content.tsx +++ b/src/plugins/index_pattern_editor/public/components/index_pattern_editor_flyout_content.tsx @@ -29,6 +29,8 @@ import { INDEX_PATTERN_TYPE, IndexPatternConfig, MatchedIndicesSet, + FormInternal, + TimestampOption, } from '../types'; import { @@ -55,14 +57,6 @@ export interface Props { defaultTypeIsRollup?: boolean; requireTimestampField?: boolean; } -export interface TimestampOption { - display: string; - fieldName?: string; -} - -export interface FormInternal extends Omit { - timestampField?: TimestampOption; -} const editorTitle = i18n.translate('indexPatternEditor.title', { defaultMessage: 'Create index pattern', @@ -295,6 +289,7 @@ const IndexPatternEditorFlyoutContentComponent = ({ const indexPatternTypeSelect = showIndexPatternTypeSelect() ? ( <> + diff --git a/src/plugins/index_pattern_editor/public/types.ts b/src/plugins/index_pattern_editor/public/types.ts index bb0598d266643..120eb3fe8bed2 100644 --- a/src/plugins/index_pattern_editor/public/types.ts +++ b/src/plugins/index_pattern_editor/public/types.ts @@ -160,6 +160,15 @@ export interface IndexPatternConfig { type: INDEX_PATTERN_TYPE; } +export interface FormInternal extends Omit { + timestampField?: TimestampOption; +} + +export interface TimestampOption { + display: string; + fieldName?: string; +} + export interface MatchedIndicesSet { allIndices: MatchedItem[]; exactMatchedIndices: MatchedItem[];