Skip to content

Commit

Permalink
Storybook: Remove unused useState logic from URLInputButton story
Browse files Browse the repository at this point in the history
  • Loading branch information
SainathPoojary committed Dec 31, 2024
1 parent d51967f commit c2f7824
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
*/
import URLInputButton from '../button';

/**
* WordPress dependencies
*/
import { useState } from '@wordpress/element';

const meta = {
title: 'BlockEditor/URLInputButton',
component: URLInputButton,
Expand Down Expand Up @@ -48,15 +43,12 @@ export default meta;

export const Default = {
render: function Template( { onChange, ...args } ) {
const [ value, setValue ] = useState();
return (
<URLInputButton
{ ...args }
onChange={ ( ...changeArgs ) => {
onChange( ...changeArgs );
setValue( ...changeArgs );
} }
value={ value }
/>
);
},
Expand Down

0 comments on commit c2f7824

Please sign in to comment.