Skip to content

Commit

Permalink
removing dynamic importing for react-icon
Browse files Browse the repository at this point in the history
  • Loading branch information
amankumarrr committed Oct 21, 2024
1 parent faa6bae commit 720e237
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 2 additions & 6 deletions components/blocks/aboutUs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import dayjs from "dayjs";
import { memo, useEffect, useState } from "react";
import type { Template } from "tinacms";

import dynamic from "next/dynamic";
import { BiChevronRightCircle } from "react-icons/bi";

import { tinaField } from "tinacms/dist/react";
import layoutData from "../../content/global/index.json";
import useIsMobile from "../../hooks/useIsMobile";
Expand All @@ -14,11 +15,6 @@ import { Container } from "../util/container";
import { Section } from "../util/section";
import { VideoModal } from "../videoModal";

const BiChevronRightCircle = dynamic(
() => import("react-icons/bi").then((mod) => mod.BiChevronRightCircle),
{ ssr: false }
);

const DAY_KEYS = {
Sunday: 0,
Monday: 1,
Expand Down
4 changes: 1 addition & 3 deletions components/videoModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import classNames from "classnames";
import dynamic from "next/dynamic";
import { useEffect, useState } from "react";

const FaPlayCircle = dynamic(() =>
import("react-icons/fa").then((mod) => mod.FaPlayCircle)
);
import { FaPlayCircle } from "react-icons/fa";

import {
MATCH_URL_VIMEO,
Expand Down

0 comments on commit 720e237

Please sign in to comment.