From a7b01f9f009aa9161da21f450b5aab2f0732eb74 Mon Sep 17 00:00:00 2001 From: Anton Gilgur <4970083+agilgur5@users.noreply.github.com> Date: Thu, 22 Aug 2024 14:17:15 -0400 Subject: [PATCH] refactor: make `context.tsx` tree-shakeable (#573) - `components/` is not tree-shakeable, so importing it makes this file also not tree-shakeable - similar to my PR upstream and for the Storybook here to use individual imports Signed-off-by: Anton Gilgur --- src/context.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/context.tsx b/src/context.tsx index 7da29d89..583502af 100644 --- a/src/context.tsx +++ b/src/context.tsx @@ -1,6 +1,8 @@ import * as H from 'history'; -import { match} from 'react-router'; -import { NotificationsApi, PopupApi } from './components'; +import { match } from 'react-router'; + +import { NotificationsApi } from './components/notifications/notification-manager'; +import { PopupApi } from './components/popup/popup-manager'; export interface AppContext { router: {