Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: dependencies version and SSR lottie rendering #983

Open
wants to merge 1 commit into
base: testnet
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion components/UI/confirmationTx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import React, { FunctionComponent } from "react";
import modalStyles from "../../styles/components/modalMessage.module.css";
import Button from "./button";
import verifiedLottie from "../../public/visuals/verifiedLottie.json";
import Lottie from "lottie-react";
import dynamic from "next/dynamic";

const Lottie = dynamic(() => import("lottie-react"), { ssr: false });

type ConfirmationTxProps = {
closeModal: () => void;
Expand Down
3 changes: 2 additions & 1 deletion components/UI/isSendingTx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
import React, { FunctionComponent } from "react";
import modalStyles from "../../styles/components/modalMessage.module.css";
import sendingLottie from "../../public/visuals/sendingLottie.json";
import Lottie from "lottie-react";
import Button from "./button";
import dynamic from "next/dynamic";

const Lottie = dynamic(() => import("lottie-react"), { ssr: false });
const IsSendingTx: FunctionComponent = () => {
return (
<div className={modalStyles.menu}>
Expand Down
4 changes: 3 additions & 1 deletion components/UI/modalMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import React from "react";
import styles from "../../styles/components/modalMessage.module.css";
import { FunctionComponent, ReactNode } from "react";
import { Modal } from "@mui/material";
import Lottie from "lottie-react";
import dynamic from "next/dynamic";

const Lottie = dynamic(() => import("lottie-react"), { ssr: false });

type ModalMessageProps = {
title: string;
Expand Down
4 changes: 3 additions & 1 deletion components/UI/registerConfirmationModal.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import React, { FunctionComponent } from "react";
import Lottie from "lottie-react";
import ModalMessage from "../UI/modalMessage";
import verifiedLottie from "../../public/visuals/verifiedLottie.json";
import Button from "./button";
import dynamic from "next/dynamic";

const Lottie = dynamic(() => import("lottie-react"), { ssr: false });

type RegisterConfirmationModalProps = {
txHash?: string;
Expand Down
4 changes: 3 additions & 1 deletion components/UI/screens/successScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import React, { FunctionComponent } from "react";
import Button from "../button";
import Lottie from "lottie-react";
import verifiedLottie from "../../../public/visuals/verifiedLottie.json";
import dynamic from "next/dynamic";

const Lottie = dynamic(() => import("lottie-react"), { ssr: false });

type SuccessScreenProps = {
buttonText: string;
Expand Down
4 changes: 3 additions & 1 deletion components/UI/txConfirmationModal.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import React, { FunctionComponent } from "react";
import Lottie from "lottie-react";
import ModalMessage from "../UI/modalMessage";
import verifiedLottie from "../../public/visuals/verifiedLottie.json";
import Button from "./button";
import dynamic from "next/dynamic";

const Lottie = dynamic(() => import("lottie-react"), { ssr: false });

type TxConfirmationModalProps = {
txHash?: string;
Expand Down
Loading