diff --git a/src/components/Support.js b/src/components/Support.js index 0efa240e..b91119ce 100644 --- a/src/components/Support.js +++ b/src/components/Support.js @@ -2,9 +2,15 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { Button, Card, CardContent, Grid, Typography } from "@material-ui/core"; import { makeStyles } from "@material-ui/core/styles"; import clsx from "clsx"; +import dynamic from "next/dynamic"; import PropTypes from "prop-types"; import React from "react"; -import { TwitterShareButton } from "react-share"; +// import { TwitterShareButton } from "react-share"; + +const TwitterShareButton = dynamic( + () => import("react-share").then((mod) => mod.TwitterShareButton), + { ssr: false }, +); const useStyles = makeStyles((theme) => ({ root: {