add storybook example of stack overflow search result with icon
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
This commit is contained in:
+16
@@ -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 />}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user