From 2b41a51d3f1c2f143bfaa4c8443356b0dfa98430 Mon Sep 17 00:00:00 2001 From: Lars Rickert Date: Fri, 3 Jan 2025 09:13:11 +0100 Subject: [PATCH] remove redundant import --- code/addons/docs/src/manager.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/addons/docs/src/manager.tsx b/code/addons/docs/src/manager.tsx index bbc7f73c03fb..69dac7ca2868 100644 --- a/code/addons/docs/src/manager.tsx +++ b/code/addons/docs/src/manager.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react'; +import React from 'react'; import { AddonPanel, type SyntaxHighlighterFormatTypes } from 'storybook/internal/components'; import { ADDON_ID, PANEL_ID, PARAM_KEY, SNIPPET_RENDERED } from 'storybook/internal/docs-tools'; @@ -38,7 +38,7 @@ addons.register(ADDON_ID, (api) => { source: { code: '' } as SourceParameters, }); - const [codeSnippet, setSourceCode] = useState<{ + const [codeSnippet, setSourceCode] = React.useState<{ source?: string; format?: SyntaxHighlighterFormatTypes; }>({});