From c2f782430fc2fdfcd75025b4230325f11dce2634 Mon Sep 17 00:00:00 2001 From: Sainath Poojary Date: Tue, 31 Dec 2024 18:04:27 +0530 Subject: [PATCH] Storybook: Remove unused useState logic from URLInputButton story --- .../src/components/url-input/stories/button.story.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/block-editor/src/components/url-input/stories/button.story.js b/packages/block-editor/src/components/url-input/stories/button.story.js index 77c84b16981167..7f89dda87084a8 100644 --- a/packages/block-editor/src/components/url-input/stories/button.story.js +++ b/packages/block-editor/src/components/url-input/stories/button.story.js @@ -3,11 +3,6 @@ */ import URLInputButton from '../button'; -/** - * WordPress dependencies - */ -import { useState } from '@wordpress/element'; - const meta = { title: 'BlockEditor/URLInputButton', component: URLInputButton, @@ -48,15 +43,12 @@ export default meta; export const Default = { render: function Template( { onChange, ...args } ) { - const [ value, setValue ] = useState(); return ( { onChange( ...changeArgs ); - setValue( ...changeArgs ); } } - value={ value } /> ); },