Skip to content

Commit

Permalink
refactor: make context.tsx tree-shakeable
Browse files Browse the repository at this point in the history
- `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 <agilgur5@gmail.com>
  • Loading branch information
agilgur5 committed Jul 21, 2024
1 parent 00a8b57 commit b0d0476
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/context.tsx
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down

0 comments on commit b0d0476

Please sign in to comment.