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

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

Loading…
Cancel
Save