Commit 112e6d9 Maja Grubic
committed
1 parent 24bcf27 commit 112e6d9 Copy full SHA for 112e6d9
File tree 4 files changed +7
-12
lines changed
src/plugins/shared_ux/public/components/page_template/no_data_page/no_data_card
4 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 5
5
* in compliance with, at your election, the Elastic License 2.0 or the Server
6
6
* Side Public License, v 1.
7
7
*/
8
- export * from './no_data_card' ;
8
+ export { NoDataCard } from './no_data_card' ;
Original file line number Diff line number Diff line change 8
8
9
9
import React from 'react' ;
10
10
import { NoDataCard } from './no_data_card' ;
11
- import { NoDataPageActions } from './types' ;
11
+ import type { NoDataCardProps } from './types' ;
12
12
13
13
export default {
14
14
title : 'No Data Card' ,
15
15
description : 'A wrapper around EuiCard, to be used on NoData page' ,
16
16
} ;
17
17
18
- type Params = Pick < NoDataPageActions , 'recommended' | 'button' | 'description' > ;
18
+ type Params = Pick < NoDataCardProps , 'recommended' | 'button' | 'description' > ;
19
19
20
20
export const PureComponent = ( params : Params ) => {
21
21
return (
Original file line number Diff line number Diff line change 9
9
import { i18n } from '@kbn/i18n' ;
10
10
import React , { FunctionComponent } from 'react' ;
11
11
import { EuiButton , EuiCard } from '@elastic/eui' ;
12
- import { NoDataPageActions } from './types' ;
12
+ import type { NoDataCardProps } from './types' ;
13
13
14
14
const recommendedLabel = i18n . translate ( 'sharedUX.pageTemplate.noDataPage.recommendedLabel' , {
15
15
defaultMessage : 'Recommended' ,
@@ -19,7 +19,7 @@ const defaultDescription = i18n.translate('sharedUX.pageTemplate.noDataCard.desc
19
19
defaultMessage : `Proceed without collecting data` ,
20
20
} ) ;
21
21
22
- export const NoDataCard : FunctionComponent < NoDataPageActions > = ( {
22
+ export const NoDataCard : FunctionComponent < NoDataCardProps > = ( {
23
23
recommended,
24
24
title,
25
25
button,
Original file line number Diff line number Diff line change @@ -22,18 +22,13 @@ export type NoDataCardProps = Partial<EuiCardProps> & {
22
22
* Remapping `onClick` to any element
23
23
*/
24
24
onClick ?: MouseEventHandler < HTMLElement > ;
25
- /**
26
- * Category to auto-select within Fleet
27
- */
28
- category ?: string ;
29
-
30
25
/**
31
26
* Description for the card. If not provided, the default will be used.
32
27
*/
33
28
description ?: string ;
34
-
35
29
/**
36
- * Layout direction of the card
30
+ * Layout direction of the card; needed for EuiCardPropsLayout:
31
+ * https://github.com/elastic/eui/blob/main/src/components/card/card.tsx#L57
37
32
*/
38
33
layout ?: 'vertical' ;
39
34
} ;
You can’t perform that action at this time.
0 commit comments