1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-05 23:44:56 +01:00
metamask-extension/ui/pages/swaps/import-token/import-token.stories.js

26 lines
558 B
JavaScript
Raw Normal View History

2021-08-31 01:00:47 +02:00
import React from 'react';
import { action } from '@storybook/addon-actions';
import ImportToken from './import-token';
export default {
title: 'Pages/Swaps/ImportToken',
id: __filename,
2021-08-31 01:00:47 +02:00
};
export const DefaultStory = () => {
2021-08-31 01:00:47 +02:00
const data = {
iconUrl: './BAT_icon.svg',
name: 'Basic Attention Token',
symbol: 'BAT',
address: '0x0d8775f648430679a709e98d2b0cb6250d2887ef',
};
return (
<ImportToken
tokenForImport={data}
onImportTokenClick={action('Token Imported')}
/>
);
};
DefaultStory.storyName = 'Default';