1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Adding UrlIcon component to Storybook (#12285)

This commit is contained in:
ryanml 2021-10-08 11:10:01 -07:00 committed by GitHub
parent 3b5e33bc4c
commit 78b7f32d97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,27 @@
import React from 'react';
import { text } from '@storybook/addon-knobs';
import UrlIcon from './url-icon';
export default {
title: 'UrlIcon',
id: __filename,
};
export const AST = () => {
return <UrlIcon name="AST" url="AST.png" />;
};
export const BAT = () => {
return <UrlIcon name="BAT" url="BAT_icon.svg" />;
};
export const CustomProps = () => {
return (
<UrlIcon
name={text('Symbol', '')}
url={text('Icon URL', '')}
className={text('className', '')}
fallbackClassName={text('fallbackClassName', '')}
/>
);
};