diff --git a/ui/components/app/metamask-template-renderer/metamask-template-renderer.stories.js b/ui/components/app/metamask-template-renderer/metamask-template-renderer.stories.js index a1f7822401a7..c494fae2b797 100644 --- a/ui/components/app/metamask-template-renderer/metamask-template-renderer.stories.js +++ b/ui/components/app/metamask-template-renderer/metamask-template-renderer.stories.js @@ -1,5 +1,4 @@ import React from 'react'; -import { object } from '@storybook/addon-knobs'; import { TextColor, TypographyVariant, @@ -8,6 +7,12 @@ import MetaMaskTemplateRenderer from '.'; export default { title: 'Components/App/MetamaskTemplateRenderer', + component: MetaMaskTemplateRenderer, + argTypes: { + sections: { + control: 'object', + }, + }, }; const SECTIONS = { @@ -85,25 +90,12 @@ const SECTIONS = { ], }; -export const DefaultStory = () => ( - +export const DefaultStory = (args) => ( + ); DefaultStory.storyName = 'Default'; -export const WithInvalidElement = () => ( - -); +DefaultStory.args = { + sections: SECTIONS, +};