diff --git a/gatsby-config.js b/gatsby-config.js index d7cbc94a..a09d51d4 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -215,7 +215,7 @@ module.exports = { { resolve: 'gatsby-plugin-sitemap', options: { - exclude: ['/page/*', '/tags/**/*'] + exclude: ['/page/*', '/tags/**/*', '/thanks/*'] } }, { diff --git a/src/pages/thanks.tsx b/src/pages/thanks.tsx index ea7c8da3..12d9f273 100644 --- a/src/pages/thanks.tsx +++ b/src/pages/thanks.tsx @@ -3,7 +3,6 @@ import shortid from 'shortid' import Helmet from 'react-helmet' import { Author } from '../@types/Site' import { useSiteMetadata } from '../hooks/use-site-metadata' -import Typekit from '../components/atoms/Typekit' import Qr from '../components/atoms/Qr' import Icon from '../components/atoms/Icon' import styles from './thanks.module.scss' @@ -30,6 +29,7 @@ export default function Thanks() { const coins = Object.keys(author).filter( key => key === 'bitcoin' || key === 'ether' ) + const isSSR = typeof window === 'undefined' return ( <> @@ -40,29 +40,29 @@ export default function Thanks() {
-

Say Thanks

+ {!isSSR && ( + Loading...}> + - Loading...}> - +
+
+

Any other wallets

+

Send Bitcoin or Ether from any wallet.

+
-
-
-

Any other wallets

-

Send Bitcoin or Ether from any wallet.

-
- - {coins.map((address: string) => ( - - ))} -
- + {coins.map((address: string) => ( + + ))} +
+
+ )}
) diff --git a/src/templates/Post/PostActions.tsx b/src/templates/Post/PostActions.tsx index 60e642d8..484d5867 100644 --- a/src/templates/Post/PostActions.tsx +++ b/src/templates/Post/PostActions.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react' +import React from 'react' import { useSiteMetadata } from '../../hooks/use-site-metadata' import styles from './PostActions.module.scss' import Icon from '../../components/atoms/Icon'