From dff20bf385ca68fc8d3fbcdeb09329cab643098e Mon Sep 17 00:00:00 2001 From: Hopium <135053852+Hopium21@users.noreply.github.com> Date: Sun, 19 Jan 2025 13:12:54 +0100 Subject: [PATCH 1/2] Update README.md --- examples/simple-setup/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/simple-setup/README.md b/examples/simple-setup/README.md index 74f48d74..9479a42e 100644 --- a/examples/simple-setup/README.md +++ b/examples/simple-setup/README.md @@ -1,6 +1,6 @@ # Simple Setup Example -This example demonstrates a simple setup of StoryKit; +This example demonstrates a simple setup of StoryKit: - wraps the app with the `StoryKitProvider` and specifies the chain in [`app/Providers.tsx`](./app/Providers.tsx) - uses the `IpProvider` to pass the IP data to child components in [`app/page.tsx`](./app/page.tsx) - the [`IpHeader`](./app/IpHeader.tsx) component uses the `IpProviders` `useIpContext` hook to access the IP data From f2553f119c265ae7507473e38216e5e44f36b172 Mon Sep 17 00:00:00 2001 From: Hopium <135053852+Hopium21@users.noreply.github.com> Date: Sun, 19 Jan 2025 13:22:11 +0100 Subject: [PATCH 2/2] Update StoryKitProvider.tsx --- .../src/providers/StoryKitProvider/StoryKitProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/storykit/src/providers/StoryKitProvider/StoryKitProvider.tsx b/packages/storykit/src/providers/StoryKitProvider/StoryKitProvider.tsx index ed1079d6..635bb657 100644 --- a/packages/storykit/src/providers/StoryKitProvider/StoryKitProvider.tsx +++ b/packages/storykit/src/providers/StoryKitProvider/StoryKitProvider.tsx @@ -70,7 +70,7 @@ export const StoryKitProvider = ({ export const useStoryKitContext = () => { const context = React.useContext(StoryKitContext) if (!context) { - throw new Error("useStoryKitContext must be used within an StoryKitProvider") + throw new Error("useStoryKitContext must be used within a StoryKitProvider") } return context }