diff --git a/.changeset/red-bears-wink.md b/.changeset/red-bears-wink.md new file mode 100644 index 00000000000..2ae4373355d --- /dev/null +++ b/.changeset/red-bears-wink.md @@ -0,0 +1,5 @@ +--- +'@clerk/clerk-js': patch +--- + +Fix: add missing context to PricingTable diff --git a/packages/clerk-js/src/ui/contexts/ClerkUIComponentsContext.tsx b/packages/clerk-js/src/ui/contexts/ClerkUIComponentsContext.tsx index 4f8996744f2..d14b9e563c6 100644 --- a/packages/clerk-js/src/ui/contexts/ClerkUIComponentsContext.tsx +++ b/packages/clerk-js/src/ui/contexts/ClerkUIComponentsContext.tsx @@ -15,6 +15,7 @@ import { OrganizationListContext, OrganizationProfileContext, OrganizationSwitcherContext, + PlansContextProvider, SignInContext, SignUpContext, UserButtonContext, @@ -87,11 +88,13 @@ export function ComponentContextProvider({ ); case 'PricingTable': return ( - <__experimental_PricingTableContext.Provider - value={{ componentName, ...(props as __experimental_PricingTableProps) }} - > - {children} - + + <__experimental_PricingTableContext.Provider + value={{ componentName, ...(props as __experimental_PricingTableProps) }} + > + {children} + + ); case 'Checkout': return (