Skip to content

Commit 59284dc

Browse files
authored
fix(clerk-js): Add missing PlansContextProvider to PricingTable (#5638)
1 parent ab939fd commit 59284dc

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.changeset/red-bears-wink.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
---
4+
5+
Fix: add missing context to PricingTable

packages/clerk-js/src/ui/contexts/ClerkUIComponentsContext.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
OrganizationListContext,
1616
OrganizationProfileContext,
1717
OrganizationSwitcherContext,
18+
PlansContextProvider,
1819
SignInContext,
1920
SignUpContext,
2021
UserButtonContext,
@@ -87,11 +88,13 @@ export function ComponentContextProvider({
8788
);
8889
case 'PricingTable':
8990
return (
90-
<__experimental_PricingTableContext.Provider
91-
value={{ componentName, ...(props as __experimental_PricingTableProps) }}
92-
>
93-
{children}
94-
</__experimental_PricingTableContext.Provider>
91+
<PlansContextProvider>
92+
<__experimental_PricingTableContext.Provider
93+
value={{ componentName, ...(props as __experimental_PricingTableProps) }}
94+
>
95+
{children}
96+
</__experimental_PricingTableContext.Provider>
97+
</PlansContextProvider>
9598
);
9699
case 'Checkout':
97100
return (

0 commit comments

Comments
 (0)