From 7a7a4f9eae1f216d07c8b3b6bbdcc46c0581ec05 Mon Sep 17 00:00:00 2001 From: imaxouning Date: Fri, 2 Feb 2024 16:40:40 +0300 Subject: [PATCH] feat: fixes props and check flag --- src/components/Stories/Stories.tsx | 2 +- src/components/Stories/__stories__/Stories.stories.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Stories/Stories.tsx b/src/components/Stories/Stories.tsx index 606ab2af..0167a599 100644 --- a/src/components/Stories/Stories.tsx +++ b/src/components/Stories/Stories.tsx @@ -53,7 +53,7 @@ export function Stories({ const {callback: closeWithLS} = useSyncWithLS>({ callback: (event, reason) => { - if (syncInTabs) onClose?.(event, reason); + onClose?.(event, reason); }, uniqueKey: `close-story-${initialStoryIndex}`, }); diff --git a/src/components/Stories/__stories__/Stories.stories.tsx b/src/components/Stories/__stories__/Stories.stories.tsx index 786001b1..0a59d391 100644 --- a/src/components/Stories/__stories__/Stories.stories.tsx +++ b/src/components/Stories/__stories__/Stories.stories.tsx @@ -62,7 +62,6 @@ const DefaultTemplate: StoryFn = (props: StoriesProps) => { { setVisible(false); }}