add storybook example of stack overflow search result with icon

Signed-off-by: Emma Indal <emma.indahl@gmail.com>
This commit is contained in:
Emma Indal
2022-06-14 16:06:18 +02:00
parent c9ca0e917d
commit 8d9f6bbe81
@@ -17,6 +17,7 @@
import { StackOverflowSearchResultListItem } from '../../plugin';
import { wrapInTestApp } from '@backstage/test-utils';
import React, { ComponentType } from 'react';
import { StackOverflowIcon } from '../../icons';
export default {
title: 'Plugins/Search/StackOverflowResultListItem',
@@ -37,3 +38,18 @@ export const Default = () => {
/>
);
};
export const WithIcon = () => {
return (
<StackOverflowSearchResultListItem
result={{
title: 'Customizing Spotify backstage UI',
text: 'Name of Author',
location: 'stackoverflow.question/1',
answers: 0,
tags: ['backstage'],
}}
icon={<StackOverflowIcon />}
/>
);
};