move next head to /pages/account

main
Mike Fix 5 years ago
parent d186958075
commit 40bf2160cd
No known key found for this signature in database
GPG Key ID: 1D85E862314CA79F

@ -1,5 +1,4 @@
import React from 'react' import React from 'react'
import { Head } from 'next'
import { Elements, StripeProvider, CardElement, injectStripe } from 'react-stripe-elements' import { Elements, StripeProvider, CardElement, injectStripe } from 'react-stripe-elements'
import { useAsyncCallback } from 'actionsack' import { useAsyncCallback } from 'actionsack'
@ -271,9 +270,6 @@ export default function() {
return ( return (
<StripeProvider stripe={stripe}> <StripeProvider stripe={stripe}>
<Elements> <Elements>
<Head>
<script src="https://js.stripe.com/v3/" />
</Head>
<BillingWithStripe /> <BillingWithStripe />
</Elements> </Elements>
</StripeProvider> </StripeProvider>

@ -1,6 +1,7 @@
// Theirs // Theirs
import React from 'react' import React from 'react'
import dynamic from 'next/dynamic' import dynamic from 'next/dynamic'
import Head from 'next/head'
// Ours // Ours
import Button from '../components/Button' import Button from '../components/Button'
@ -249,6 +250,9 @@ function Settings() {
function SettingsPage() { function SettingsPage() {
return ( return (
<Page flex={true}> <Page flex={true}>
<Head>
<script src="https://js.stripe.com/v3/" />
</Head>
<MetaLinks /> <MetaLinks />
<Settings /> <Settings />
</Page> </Page>

Loading…
Cancel
Save