Skip to content

Commit

Permalink
Move flyout context file + fix error in integrations app
Browse files Browse the repository at this point in the history
  • Loading branch information
kpollich committed May 10, 2022
1 parent f640da5 commit a48fae5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions x-pack/plugins/fleet/cypress/fixtures/example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "Using fixtures to represent data",
"email": "[email protected]",
"body": "Fixtures are a great way to mock data for responses to routes"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@
export * from '../../../hooks';

export * from './use_breadcrumbs';
export * from './flyout_context';
4 changes: 2 additions & 2 deletions x-pack/plugins/fleet/public/applications/integrations/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { INTEGRATIONS_ROUTING_PATHS, pagePathGetters } from './constants';
import type { UIExtensionsStorage } from './types';

import { EPMApp } from './sections/epm';
import { PackageInstallProvider, UIExtensionsContext } from './hooks';
import { PackageInstallProvider, UIExtensionsContext, FlyoutContextProvider } from './hooks';
import { IntegrationsHeader } from './components/header';

const EmptyContext = () => <></>;
Expand Down Expand Up @@ -82,7 +82,7 @@ export const IntegrationsAppContext: React.FC<{
theme$={theme$}
>
<IntegrationsHeader {...{ setHeaderActionMenu, theme$ }} />
{children}
<FlyoutContextProvider>{children}</FlyoutContextProvider>
<Chat />
</PackageInstallProvider>
</AgentPolicyContextProvider>
Expand Down
1 change: 1 addition & 0 deletions x-pack/plugins/fleet/public/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ export * from './use_platform';
export * from './use_agent_policy_refresh';
export * from './use_package_installations';
export * from './use_agent_enrollment_flyout_data';
export * from './flyout_context';

0 comments on commit a48fae5

Please sign in to comment.