Skip to content

Commit

Permalink
fix(createtearsheet): narrow missing prop update
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeethababu9223 committed Jan 6, 2025
1 parent 8c13de3 commit 24e4cfd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ const createTearsheetProps = {
className: 'test-class-name',
label: '',
influencerWidth: 'narrow',
selectorPrimaryFocus: '#tearsheet-multi-step-story-text-input-multi-step-1',
slug: 0,
decorator: 1,
};

export const multiStepTearsheet = MultiStepTearsheet.bind({});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ const defaultStoryProps = {
secondaryButtonText: 'Cancel',
label: 'Test label',
selectorPrimaryFocus: '#tearsheet-narrow-story-text-input--1',
slug: 0,
decorator: 1,
};

const Template = ({ slug, decorator, ...args }, context) => {
Expand Down Expand Up @@ -164,7 +162,7 @@ const Template = ({ slug, decorator, ...args }, context) => {
);
};

const WithValidationTemplate = ({ slug, ...args }, context) => {
const WithValidationTemplate = ({ slug, decorator, ...args }, context) => {
const [open, setOpen] = useState(context.viewMode !== 'docs');
const [topicName, setTopicName] = useState('');
const [partitionCount, setPartitionCount] = useState(1);
Expand Down
4 changes: 2 additions & 2 deletions packages/ibm-products/src/global/js/story-parts/decorator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const sampleDecorator = (decorator) => {
};

export const decoratorArgTypes = ({
_default = 0,
_default = 1,
withHollow = false,
} = {}) => {
const decorator = {

Check warning on line 60 in packages/ibm-products/src/global/js/story-parts/decorator.jsx

View check run for this annotation

Codecov / codecov/patch

packages/ibm-products/src/global/js/story-parts/decorator.jsx#L56-L60

Added lines #L56 - L60 were not covered by tests
Expand All @@ -77,7 +77,7 @@ export const decoratorArgTypes = ({
return { decorator };

Check warning on line 77 in packages/ibm-products/src/global/js/story-parts/decorator.jsx

View check run for this annotation

Codecov / codecov/patch

packages/ibm-products/src/global/js/story-parts/decorator.jsx#L77

Added line #L77 was not covered by tests
};

export const slugArgTypes = ({ _default = 0, withHollow = false } = {}) => {
export const slugArgTypes = ({ _default = 1, withHollow = false } = {}) => {
const slug = {

Check warning on line 81 in packages/ibm-products/src/global/js/story-parts/decorator.jsx

View check run for this annotation

Codecov / codecov/patch

packages/ibm-products/src/global/js/story-parts/decorator.jsx#L80-L81

Added lines #L80 - L81 were not covered by tests
control: {
type: 'select',
Expand Down

0 comments on commit 24e4cfd

Please sign in to comment.