diff --git a/ui/components/ui/callout/callout.stories.js b/ui/components/ui/callout/callout.stories.js index 4bdfc516f..8ee2eaadc 100644 --- a/ui/components/ui/callout/callout.stories.js +++ b/ui/components/ui/callout/callout.stories.js @@ -1,4 +1,3 @@ -import { select } from '@storybook/addon-knobs'; import React, { useState } from 'react'; import { COLORS, @@ -12,9 +11,17 @@ import Callout from './callout'; export default { title: 'Components/UI/Callout', id: __filename, + argTypes: { + severity: { + control: { + type: 'select', + }, + options: Object.values(SEVERITIES), + }, + }, }; -export const PersistentCallout = () => ( +export const PersistentCallout = (args) => ( This is your private key: @@ -22,13 +29,11 @@ export const PersistentCallout = () => ( some seed words that are super important and probably deserve a callout - - Always back up your private key! - + Always back up your private key! ); -export const DismissibleCallout = () => { +export const DismissibleCallout = (args) => { const [dismissed, setDismissed] = useState(false); return ( @@ -42,10 +47,7 @@ export const DismissibleCallout = () => { {!dismissed && ( - setDismissed(true)} - > + setDismissed(true)}> Always back up your private key! )}