Skip to content

Commit

Permalink
fix(Hero): block storybook is disabled due to breaking of storybook c…
Browse files Browse the repository at this point in the history
…ontrols (#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
  • Loading branch information
ana-oprea authored Jun 3, 2024
1 parent e4bcdb7 commit c9e5b96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/ui/Hero/Hero.st.jsx → src/ui/Hero/Hero.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion src/ui/Hero/Hero.stories.test.jsx
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down

0 comments on commit c9e5b96

Please sign in to comment.