Moved the script tag
This commit is contained in:
@@ -16,7 +16,9 @@ export default function RootLayout({children}: {children: React.ReactNode}) {
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<link rel="icon" href="/favicon.ico" sizes="any" />
|
<link rel="icon" href="/favicon.ico" sizes="any" />
|
||||||
<meta http-equiv="Content-Security-Policy" content="default-src 'self' *.stripe.com" />
|
<meta httpEquiv="Content-Security-Policy" content="default-src 'self' *.stripe.com" />
|
||||||
|
|
||||||
|
<script async src="https://js.stripe.com/v3/pricing-table.js" />
|
||||||
</head>
|
</head>
|
||||||
<body className={inter.className}>{children}</body>
|
<body className={inter.className}>{children}</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ const stripePromise = loadStripe("pk_test_51NzD5xFI67mXFum2XDMXiLu89SbCAMY5O0RnK
|
|||||||
export default function PricingTable() {
|
export default function PricingTable() {
|
||||||
return (
|
return (
|
||||||
<Elements stripe={stripePromise}>
|
<Elements stripe={stripePromise}>
|
||||||
<script async src="https://js.stripe.com/v3/pricing-table.js" />
|
|
||||||
{/** @ts-ignore */}
|
{/** @ts-ignore */}
|
||||||
<stripe-pricing-table
|
<stripe-pricing-table
|
||||||
id="pricing"
|
id="pricing"
|
||||||
|
|||||||
Reference in New Issue
Block a user