1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-30 16:18:07 +01:00
metamask-extension/ui/pages/settings/advanced-tab/advanced-tab.stories.js
kumavis f472c2615a
CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095)
* ci/announce/highlight - add bot announcement section for "highlights" showing off important diffs + storybook highlights

* ci/announce/highlight - fix announcement message

* Update index.js

* xxx tmp xxx

* ci/announce/highlight - fix dirty file calculation

* ci/announce/highlight - try/catch wrap highlight generation for build stability

* ui - put fox emojis in the mascot component

* ci/announce/highlight - start storybook permalinks

* ci/announce/highlight - fix storybook permalink util

* ci/announce/highlight - fix storybook permalink util

* ci/announce/highlight - small styling fix

* storybook - use any easily predictable story id

* ci/announce/highlight - revert sample commit

* ci/announce/highlight - minimal documentation
2021-09-15 08:55:48 -10:00

46 lines
1.6 KiB
JavaScript

import React from 'react';
import { text, boolean } from '@storybook/addon-knobs';
import AdvancedTab from './advanced-tab.component';
export default {
title: 'AdvancedTab',
id: __filename,
};
export const AdvancedTabComponent = () => {
return (
<div style={{ flex: 1, height: 500 }}>
<AdvancedTab
setAutoLockTimeLimit={() => undefined}
setShowFiatConversionOnTestnetsPreference={() => undefined}
setThreeBoxSyncingPermission={() => undefined}
setIpfsGateway={() => undefined}
setLedgerLivePreference={() => undefined}
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>
);
};