2021-09-13 23:02:24 +02:00
|
|
|
import React from 'react';
|
|
|
|
import { text, boolean } from '@storybook/addon-knobs';
|
|
|
|
import AdvancedTab from './advanced-tab.component';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'AdvancedTab',
|
2021-09-15 20:55:48 +02:00
|
|
|
id: __filename,
|
2021-09-13 23:02:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export const AdvancedTabComponent = () => {
|
|
|
|
return (
|
|
|
|
<div style={{ flex: 1, height: 500 }}>
|
|
|
|
<AdvancedTab
|
|
|
|
setAutoLockTimeLimit={() => undefined}
|
|
|
|
setShowFiatConversionOnTestnetsPreference={() => undefined}
|
2021-10-28 21:31:05 +02:00
|
|
|
setShowTestNetworks={() => undefined}
|
2021-09-13 23:02:24 +02:00
|
|
|
setThreeBoxSyncingPermission={() => undefined}
|
|
|
|
setIpfsGateway={() => undefined}
|
2021-11-08 16:28:40 +01:00
|
|
|
setLedgerTransportPreference={() => undefined}
|
2021-09-13 23:02:24 +02:00
|
|
|
setDismissSeedBackUpReminder={() => undefined}
|
|
|
|
setUseNonceField={() => undefined}
|
|
|
|
setHexDataFeatureFlag={() => undefined}
|
|
|
|
displayWarning={() => undefined}
|
|
|
|
history={{ push: () => undefined }}
|
|
|
|
showResetAccountConfirmationModal={() => undefined}
|
|
|
|
setAdvancedInlineGasFeatureFlag={() => undefined}
|
|
|
|
warning={text('Warning', 'Warning Sample')}
|
|
|
|
ipfsGateway="ipfs-gateway"
|
|
|
|
useNonceField={boolean('Customize Transaction Nonce', false)}
|
|
|
|
sendHexData={boolean('Show Hex Data', false)}
|
|
|
|
advancedInlineGas={boolean('Advanced Inline Gas', false)}
|
|
|
|
showFiatInTestnets={boolean('Show Conversion on Testnets', false)}
|
|
|
|
threeBoxSyncingAllowed={boolean(
|
|
|
|
'Sync data with 3Box (experimental)',
|
|
|
|
false,
|
|
|
|
)}
|
|
|
|
threeBoxDisabled={boolean('3Box Disabled', false)}
|
|
|
|
useLedgerLive={boolean('Use Ledger Live', false)}
|
|
|
|
dismissSeedBackUpReminder={boolean(
|
|
|
|
'Dismiss recovery phrase backup reminder',
|
|
|
|
false,
|
|
|
|
)}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|