@@ -70,7 +70,7 @@ import { RouteComponentProps } from 'react-router-dom';
70
70
import queryString from 'querystring' ;
71
71
import { getDataSourceFromURL , getSampleDetectorsQueryParamsWithDataSouceId , isDataSourceCompatible } from '../../../../public/pages/utils/helpers' ;
72
72
import { MDSStates } from '../../../models/interfaces' ;
73
- import { TopNavControlButtonData } from '../../../../../../src/plugins/navigation/public' ;
73
+ import { TopNavControlButtonData , TopNavControlLinkData } from '../../../../../../src/plugins/navigation/public' ;
74
74
75
75
interface AnomalyDetectionOverviewProps extends RouteComponentProps {
76
76
setActionMenu : ( menuMount : MountPoint | undefined ) => void ;
@@ -108,8 +108,8 @@ export function AnomalyDetectionOverview(props: AnomalyDetectionOverviewProps) {
108
108
const queryParams = getDataSourceFromURL ( props . location ) ;
109
109
const [ MDSOverviewState , setMDSOverviewState ] = useState < MDSStates > ( {
110
110
queryParams,
111
- selectedDataSourceId : queryParams . dataSourceId === undefined
112
- ? undefined
111
+ selectedDataSourceId : queryParams . dataSourceId === undefined
112
+ ? undefined
113
113
: queryParams . dataSourceId ,
114
114
} ) ;
115
115
@@ -149,7 +149,7 @@ export function AnomalyDetectionOverview(props: AnomalyDetectionOverviewProps) {
149
149
...location ,
150
150
search : queryString . stringify ( updatedParams ) ,
151
151
} ) ;
152
- }
152
+ }
153
153
fetchData ( ) ;
154
154
} , [ MDSOverviewState ] ) ;
155
155
@@ -275,7 +275,7 @@ export function AnomalyDetectionOverview(props: AnomalyDetectionOverviewProps) {
275
275
componentType = { 'DataSourceSelectable' }
276
276
componentConfig = { {
277
277
fullWidth : false ,
278
- activeOption : props . landingDataSourceId === undefined
278
+ activeOption : props . landingDataSourceId === undefined
279
279
|| MDSOverviewState . selectedDataSourceId === undefined
280
280
? undefined
281
281
: [ { id : MDSOverviewState . selectedDataSourceId } ] ,
@@ -292,15 +292,14 @@ export function AnomalyDetectionOverview(props: AnomalyDetectionOverviewProps) {
292
292
293
293
const descriptionData = [
294
294
{
295
- renderComponent : (
296
- < EuiText >
297
- The anomaly detection plugin automatically detects anomalies in your
298
- data in near real-time using the Random Cut Forest (RCF) algorithm.{ ' ' }
299
- < EuiLink href = { `${ BASE_DOCS_LINK } /ad` } target = "_blank" >
300
- Learn more
301
- </ EuiLink >
302
- </ EuiText >
303
- ) ,
295
+ description : 'The anomaly detection plugin automatically detects anomalies in your data in near real-time using the Random Cut Forest (RCF) algorithm.' ,
296
+ links : {
297
+ label : 'Learn more' ,
298
+ target : '_blank' ,
299
+ flush : 'both' ,
300
+ href : `${ BASE_DOCS_LINK } /ad` ,
301
+ controlType : 'link' ,
302
+ } as TopNavControlLinkData ,
304
303
} ,
305
304
] ;
306
305
let renderPageHeader = ( ) => {
@@ -364,7 +363,7 @@ export function AnomalyDetectionOverview(props: AnomalyDetectionOverviewProps) {
364
363
< Fragment >
365
364
{ dataSourceEnabled && renderDataSourceComponent }
366
365
{ renderPageHeader ( ) }
367
-
366
+
368
367
< EuiSpacer size = "xl" />
369
368
< ContentPanel title = "How it works" >
370
369
< EuiFlexGroup >
0 commit comments