Skip to content

Commit

Permalink
Add logo as an argtype
Browse files Browse the repository at this point in the history
  • Loading branch information
Maja Grubic committed Mar 31, 2022
1 parent fc2a50a commit f6a40b3
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default {
const action = {
elasticAgent: {},
};
type Params = Pick<NoDataPageProps, 'solution'>;
type Params = Pick<NoDataPageProps, 'solution' | 'logo'>;

export const PureComponent = (params: Params) => {
return <NoDataPage docsLink={services.docLinks.dataViewsDocLink} action={action} {...params} />;
Expand All @@ -31,4 +31,9 @@ PureComponent.argTypes = {
control: 'text',
defaultValue: 'Observability',
},
logo: {
control: { type: 'radio' },
options: ['logoElastic', 'logoKibana', 'logoCloud', undefined],
defaultValue: undefined,
},
};

0 comments on commit f6a40b3

Please sign in to comment.