From b61d71b6dee8e54a394781fce53fc97208bde678 Mon Sep 17 00:00:00 2001 From: Rohan Poojary <47334631+RohanPoojary1107@users.noreply.github.com> Date: Sun, 24 Sep 2023 20:42:06 +0100 Subject: [PATCH] Update storybook-addons-api-usechannel.js.mdx Add missing import for `useChannel` hook --- docs/snippets/common/storybook-addons-api-usechannel.js.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/snippets/common/storybook-addons-api-usechannel.js.mdx b/docs/snippets/common/storybook-addons-api-usechannel.js.mdx index 0d66a5955350..dd6d238d1c48 100644 --- a/docs/snippets/common/storybook-addons-api-usechannel.js.mdx +++ b/docs/snippets/common/storybook-addons-api-usechannel.js.mdx @@ -7,6 +7,8 @@ import { AddonPanel, Button } from '@storybook/components'; import { STORY_CHANGED } from '@storybook/core-events'; +import { useChannel } from '@storybook/manager-api'; + export const Panel = () => { // Creates a Storybook API channel and subscribes to the STORY_CHANGED event const emit = useChannel({