Skip to content

Commit

Permalink
refactor(react-notifications): separate context from provider
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsdaniels committed Mar 27, 2024
1 parent 97430f9 commit 9308500
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
NotificationProps,
Notifications,
notificationsContext,
} from "./NotificationsContext";
} from "../contexts/notificationsContext";

interface AddAction {
operation: "add";
Expand Down
2 changes: 1 addition & 1 deletion packages/react-notifications/hooks/useNotifications.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ReactNode, useContext } from "react";
import { notificationsContext } from "../providers/NotificationsContext";
import { notificationsContext } from "../contexts/notificationsContext";

/**
* @param {string} [group="default"] - The notification group to associate with.
Expand Down
4 changes: 2 additions & 2 deletions packages/react-notifications/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./components/NotificationsProvider";
export * from "./contexts/notificationsContext";
export * from "./hooks/useNotifications";
export * from "./providers/NotificationsProvider";
export * from "./providers/NotificationsContext";

0 comments on commit 9308500

Please sign in to comment.