1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
白宦成 aef2541e57
Convert UrlIcon knobs and actions to controls / args (#13981)
Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2022-03-31 13:30:15 -05:00

39 lines
758 B
JavaScript

import React from 'react';
import UrlIcon from './url-icon';
export default {
title: 'Components/UI/UrlIcon',
id: __filename,
argType: {
name: { control: 'text' },
url: { control: 'text' },
className: { control: 'text' },
fallbackClassName: { control: 'text' },
},
args: {
name: 'AST',
url: 'AST.png',
className: '',
fallbackClassName: '',
},
};
export const DefaultStory = (args) => {
return (
<UrlIcon
name={args.name}
url={args.url}
className={args.className}
fallbackClassName={args.fallbackClassName}
/>
);
};
export const AST = () => {
return <UrlIcon name="AST" url="AST.png" />;
};
export const BAT = () => {
return <UrlIcon name="BAT" url="BAT_icon.svg" />;
};