Skip to content

Commit

Permalink
refactor: make context.tsx tree-shakeable (#573)
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 <[email protected]>
  • Loading branch information
agilgur5 authored Aug 22, 2024
1 parent ba20f5e commit a7b01f9
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 a7b01f9

Please sign in to comment.