Refactor billing components for marketing usage
A new component 'marketing.tsx' was added to the 'billing-gateway' package, for better organization of marketing-related components. This affects the structure of 'package.json' and requires adjustments in 'index.ts'. The import paths in both marketing-related pages ('pricing/page.tsx', 'page.tsx') were also updated for consistency.
This commit is contained in:
@@ -12,7 +12,8 @@
|
||||
"exports": {
|
||||
".": "./src/index.ts",
|
||||
"./components": "./src/components/index.ts",
|
||||
"./checkout": "./src/components/embedded-checkout.tsx"
|
||||
"./checkout": "./src/components/embedded-checkout.tsx",
|
||||
"./marketing": "./src/components/marketing.tsx"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@hookform/resolvers": "3.3.4",
|
||||
|
||||
@@ -2,5 +2,4 @@ export * from './plan-picker';
|
||||
export * from './current-subscription-card';
|
||||
export * from './current-lifetime-order-card';
|
||||
export * from './billing-session-status';
|
||||
export * from './billing-portal-card';
|
||||
export * from './pricing-table';
|
||||
export * from './billing-portal-card';
|
||||
1
packages/billing/gateway/src/components/marketing.tsx
Normal file
1
packages/billing/gateway/src/components/marketing.tsx
Normal file
@@ -0,0 +1 @@
|
||||
export * from './pricing-table';
|
||||
Reference in New Issue
Block a user