Skip to content

Commit

Permalink
Add prop to stories to prevent future deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
brookewp committed Jan 31, 2023
1 parent 7ec76ca commit be948e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const Template: ComponentStory< typeof ToggleGroupControl > = ( {

return (
<ToggleGroupControl
__nextHasNoMarginBottom
{ ...props }
onChange={ ( ...changeArgs ) => {
setValue( ...changeArgs );
Expand Down
3 changes: 3 additions & 0 deletions packages/components/src/tools-panel/stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export const _default = () => {
onDeselect={ () => setScale( undefined ) }
>
<ToggleGroupControl
__nextHasNoMarginBottom
label="Scale"
value={ scale }
onChange={ ( next ) => setScale( next ) }
Expand Down Expand Up @@ -367,6 +368,7 @@ export const WithConditionalDefaultControl = () => {
isShownByDefault={ !! height }
>
<ToggleGroupControl
__nextHasNoMarginBottom
label="Scale"
value={ scale }
onChange={ ( next ) =>
Expand Down Expand Up @@ -456,6 +458,7 @@ export const WithConditionallyRenderedControl = () => {
isShownByDefault={ true }
>
<ToggleGroupControl
__nextHasNoMarginBottom
label="Scale"
value={ scale }
onChange={ ( next ) =>
Expand Down

0 comments on commit be948e2

Please sign in to comment.