Skip to content

Commit

Permalink
remove observability dep
Browse files Browse the repository at this point in the history
  • Loading branch information
kdelemme committed Jul 16, 2024
1 parent 1ae879a commit a58450e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"kibanaUtils",
"esql",
"esqlDataGrid",
"observability",
],
"optionalPlugins": [],
"extraPublicDirs": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,25 @@
* 2.0.
*/
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
import type { AuthenticatedUser } from '@kbn/core/public';
import type {
GlobalWidgetParameters,
InvestigateWidgetCreate,
InvestigationRevision,
OnWidgetAdd,
WorkflowBlock,
} from '@kbn/investigate-plugin/public';
import type { AuthenticatedUser } from '@kbn/core/public';

import { assertNever } from '@kbn/std';
import { Moment } from 'moment';
import React, { useState } from 'react';
import { AddWidgetMode } from '../../constants/add_widget_mode';
import { useWorkflowBlocks } from '../../hooks/workflow_blocks/use_workflow_blocks';
import { AddFromLibraryButton } from '../add_from_library_button';
import { AddWidgetModeSelector } from '../add_widget_mode_selector';
import { AssistantWidgetControl } from '../assistant_widget_control';
import { EsqlWidgetControl } from '../esql_widget_control';
import { NoteWidgetControl } from '../note_widget_control';
import { useWorkflowBlocks } from '../../hooks/workflow_blocks/use_workflow_blocks';

type AddWidgetUIProps = {
user: Pick<AuthenticatedUser, 'full_name' | 'username'>;
Expand Down Expand Up @@ -75,6 +76,9 @@ function getControlsForMode({

case AddWidgetMode.Note:
return <NoteWidgetControl user={user} onWidgetAdd={onWidgetAdd} />;

default:
assertNever(mode);
}
}

Expand Down

0 comments on commit a58450e

Please sign in to comment.