File tree Expand file tree Collapse file tree
x-pack/plugins/apm/public/components
alerting/error_count_alert_trigger Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ node scripts/storybook --dll
77
88cd " $KIBANA_DIR "
99
10- # yarn storybook --site apm # TODO re-enable after being fixed
10+ yarn storybook --site apm
1111yarn storybook --site canvas
1212yarn storybook --site ci_composite
1313yarn storybook --site url_template_editor
Original file line number Diff line number Diff line change 88import React from 'react' ;
99import { MemoryRouter } from 'react-router-dom' ;
1010import { ErrorCountAlertTrigger } from '.' ;
11+ import { EuiThemeProvider } from '../../../../../../../src/plugins/kibana_react/common' ;
1112import { ApmPluginContextValue } from '../../../context/apm_plugin/apm_plugin_context' ;
1213import {
1314 mockApmPluginContextValue ,
@@ -19,15 +20,19 @@ export default {
1920 component : ErrorCountAlertTrigger ,
2021 decorators : [
2122 ( Story : React . ComponentClass ) => (
22- < MockApmPluginContextWrapper
23- value = { ( mockApmPluginContextValue as unknown ) as ApmPluginContextValue }
24- >
25- < MemoryRouter >
26- < div style = { { width : 400 } } >
27- < Story />
28- </ div >
29- </ MemoryRouter >
30- </ MockApmPluginContextWrapper >
23+ < EuiThemeProvider >
24+ < MockApmPluginContextWrapper
25+ value = {
26+ ( mockApmPluginContextValue as unknown ) as ApmPluginContextValue
27+ }
28+ >
29+ < MemoryRouter >
30+ < div style = { { width : 400 } } >
31+ < Story />
32+ </ div >
33+ </ MemoryRouter >
34+ </ MockApmPluginContextWrapper >
35+ </ EuiThemeProvider >
3136 ) ,
3237 ] ,
3338} ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { EuiTitle } from '@elastic/eui';
99import React , { ComponentType } from 'react' ;
1010import { MemoryRouter } from 'react-router-dom' ;
1111import { HttpSetup } from '../../../../../../../src/core/public' ;
12+ import { EuiThemeProvider } from '../../../../../../../src/plugins/kibana_react/common' ;
1213import { MockApmPluginContextWrapper } from '../../../context/apm_plugin/mock_apm_plugin_context' ;
1314import { MockUrlParamsContextProvider } from '../../../context/url_params_context/mock_url_params_context_provider' ;
1415import { createCallApmApi } from '../../../services/rest/createCallApmApi' ;
@@ -22,15 +23,17 @@ export default {
2223 createCallApmApi ( ( { } as unknown ) as HttpSetup ) ;
2324
2425 return (
25- < MockUrlParamsContextProvider
26- params = { { rangeFrom : 'now-15m' , rangeTo : 'now' } }
27- >
28- < MockApmPluginContextWrapper >
29- < MemoryRouter >
30- < Story />
31- </ MemoryRouter >
32- </ MockApmPluginContextWrapper >
33- </ MockUrlParamsContextProvider >
26+ < EuiThemeProvider >
27+ < MockUrlParamsContextProvider
28+ params = { { rangeFrom : 'now-15m' , rangeTo : 'now' } }
29+ >
30+ < MockApmPluginContextWrapper >
31+ < MemoryRouter >
32+ < Story />
33+ </ MemoryRouter >
34+ </ MockApmPluginContextWrapper >
35+ </ MockUrlParamsContextProvider >
36+ </ EuiThemeProvider >
3437 ) ;
3538 } ,
3639 ] ,
You can’t perform that action at this time.
0 commit comments