diff --git a/frontend/src/app/main/ui/ds/layout/tab_switcher.stories.jsx b/frontend/src/app/main/ui/ds/layout/tab_switcher.stories.jsx index 33840f8802..f5b1e2e83f 100644 --- a/frontend/src/app/main/ui/ds/layout/tab_switcher.stories.jsx +++ b/frontend/src/app/main/ui/ds/layout/tab_switcher.stories.jsx @@ -13,8 +13,8 @@ const Padded = ({ children }) => (
{children}
); -const TabSwitcherWrapper = ({tabs, ...props}) => { - const navTabs = tabs.map(({content, ...item}) => { +const TabSwitcherWrapper = ({ tabs, ...props }) => { + const navTabs = tabs.map(({ content, ...item }) => { return item; }); @@ -28,7 +28,12 @@ const TabSwitcherWrapper = ({tabs, ...props}) => { }, {}); return ( - + {content[selected]} ); @@ -77,12 +82,7 @@ export default { }, parameters: { controls: { - exclude: [ - "tabs", - "actionButton", - "default", - "actionButtonPosition", - ], + exclude: ["tabs", "actionButton", "default", "actionButtonPosition"], }, }, render: ({ ...args }) => ,