From c9e5b96bf8538bf43dfab0517b71edb3f67f046c Mon Sep 17 00:00:00 2001 From: ana-oprea <80201759+ana-oprea@users.noreply.github.com> Date: Mon, 3 Jun 2024 16:39:22 +0300 Subject: [PATCH] fix(Hero): block storybook is disabled due to breaking of storybook controls (#442) * fix: Hero block storybook is disabled due to breaking of storybook controls for stories bellow it -refs #270141 * test: update path to Hero.stories in the Hero.stories.test file -refs #270141 --- src/ui/Hero/{Hero.st.jsx => Hero.stories.jsx} | 5 +---- src/ui/Hero/Hero.stories.test.jsx | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) rename src/ui/Hero/{Hero.st.jsx => Hero.stories.jsx} (98%) diff --git a/src/ui/Hero/Hero.st.jsx b/src/ui/Hero/Hero.stories.jsx similarity index 98% rename from src/ui/Hero/Hero.st.jsx rename to src/ui/Hero/Hero.stories.jsx index 4550c5a9e5..082a3b0a16 100644 --- a/src/ui/Hero/Hero.st.jsx +++ b/src/ui/Hero/Hero.stories.jsx @@ -31,13 +31,10 @@ export default { }, }, buttonVariant: { - options: ['', 'primary', 'secondary'], + options: ['default', 'primary', 'secondary'], description: 'button variant options', control: { type: 'select', - labels: { - '': 'default', - }, }, defaultValue: 'primary', table: { diff --git a/src/ui/Hero/Hero.stories.test.jsx b/src/ui/Hero/Hero.stories.test.jsx index 096e489c19..6cfa0a6a3f 100644 --- a/src/ui/Hero/Hero.stories.test.jsx +++ b/src/ui/Hero/Hero.stories.test.jsx @@ -1,6 +1,6 @@ import React from 'react'; import { render } from '@testing-library/react'; -import { Playground, Default } from './Hero.st'; +import { Playground, Default } from './Hero.stories'; import '@testing-library/jest-dom/extend-expect'; describe('Playground component', () => {