You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
756 B
37 lines
756 B
3 years ago
|
import React from 'react';
|
||
|
import PopoverPortal from '../../ui/popover/popover.component';
|
||
|
import Button from '../../ui/button';
|
||
|
import EditGasDisplay from '.';
|
||
|
|
||
|
export default {
|
||
|
title: 'Edit Gas Display',
|
||
|
};
|
||
|
|
||
|
export const basic = () => {
|
||
|
return (
|
||
|
<div style={{ width: '600px' }}>
|
||
|
<EditGasDisplay />
|
||
|
</div>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export const insidePopover = () => {
|
||
|
return (
|
||
|
<div style={{ width: '600px' }}>
|
||
|
<PopoverPortal
|
||
|
title="Edit gas fee"
|
||
|
onClose={() => console.log('Closing!')}
|
||
|
footer={
|
||
|
<>
|
||
|
<Button type="primary">Save</Button>
|
||
|
</>
|
||
|
}
|
||
|
>
|
||
|
<div style={{ padding: '20px' }}>
|
||
|
<EditGasDisplay />
|
||
|
</div>
|
||
|
</PopoverPortal>
|
||
|
</div>
|
||
|
);
|
||
|
};
|