Skip to content

Commit

Permalink
fix: fix hydration error
Browse files Browse the repository at this point in the history
  • Loading branch information
thepsalmist committed Oct 29, 2024
1 parent 5350639 commit 309756e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/Support.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 309756e

Please sign in to comment.