Skip to content

Commit

Permalink
Fix typescripting
Browse files Browse the repository at this point in the history
  • Loading branch information
Maja Grubic committed Mar 8, 2022
1 parent 71b8fc7 commit 346ec1f
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import { EuiCardProps } from '@elastic/eui';
import { MouseEventHandler, ReactNode } from 'react';

export type NoDataCardProps = Partial<EuiCardProps> & {
export type NoDataCardProps = Partial<Omit<EuiCardProps, 'layout'>> & {
/**
* Applies the `Recommended` beta badge and makes the button `fill`
*/
Expand All @@ -26,9 +26,4 @@ export type NoDataCardProps = Partial<EuiCardProps> & {
* Description for the card. If not provided, the default will be used.
*/
description?: string;
/**
* Layout direction of the card; needed for EuiCardPropsLayout:
* https://github.com/elastic/eui/blob/main/src/components/card/card.tsx#L57
*/
layout?: 'vertical';
};

0 comments on commit 346ec1f

Please sign in to comment.