File "index.js"
Full path: /home/kosmetik/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/packages/checkout/totals/fees/stories/index.js
File
size: 676 B
MIME-type: text/plain
Charset: utf-8
Download Open Edit Advanced Editor Back
/**
* External dependencies
*/
import { text } from '@storybook/addon-knobs';
import { currencyKnob } from '@woocommerce/knobs';
/**
* Internal dependencies
*/
import TotalsFees from '../';
export default {
title: 'WooCommerce Blocks/@blocks-checkout/TotalsFees',
component: TotalsFees,
};
export const Default = () => {
const currency = currencyKnob();
const totalFees = text( 'Total fee', '1000' );
const totalFeesTax = text( 'Total fee tax', '200' );
return (
<TotalsFees
currency={ currency }
cartFees={ [
{
id: 'fee',
name: 'Fee',
totals: {
total: totalFees,
total_tax: totalFeesTax,
},
},
] }
/>
);
};