Skip to content
Merged
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
10 changes: 7 additions & 3 deletions __tests__/components/Sections/Stats1.test.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { render } from "@testing-library/react";
import Stats1 from "../../../components/Sections/Stats1";
import Stats from "../../../components/Sections/Stats";
import { stats1Data } from "../../../cms.data";

describe("Stats1", () => {
describe("Stats component tests", () => {
it("should render the component", () => {
render(<Stats1 />);
render(<Stats />);
});
it("should render the component with data", () => {
render(<Stats data={stats1Data} />);
});
});
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import StatNumberCard from "../StatNumberCard";

export default function Stats1({ data }) {
export default function Stats({ data }) {
return (
<section id="stats-1" className="py-20">
<div className="container px-4 mx-auto">
Expand Down
10 changes: 5 additions & 5 deletions pages/index.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState, useRef, useEffect } from "react";
import { useState, useEffect } from "react";
import { fetcher, clientJwtDecode } from "../lib/utils";
import { useSession, signIn, signOut } from "next-auth/react";
import { useSession } from "next-auth/react";
import { routeSeoContent } from "../siteMetadata.js";
import localforage from "localforage";
import { NextSeo } from "next-seo";
Expand All @@ -10,7 +10,7 @@ import Footer from "../components/Footer";
import NavigationHero from "../components/Sections/NavigationHero";
import WhyInvest from "../components/Sections/WhyInvest";
import FactCards from "../components/Sections/FactCards";
import Stats1 from "../components/Sections/Stats1";
import Stats from "../components/Sections/Stats";
import FactSnippets from "../components/Sections/FactSnippets";
import InfoBlock from "../components/Sections/InfoBlock";
import Team from "../components/Sections/Team";
Expand Down Expand Up @@ -163,12 +163,12 @@ export default function Funded() {
mobileMenuIsClicked={mobileMenuIsClicked}
setMobileMenuIsClicked={setMobileMenuIsClicked}
/>
<Stats1 data={stats1Data} />
<Stats data={stats1Data} />
<WhyInvest {...whyInvestContent} />
{!session ? null : (
<>
<FactCards factCardsContent={factCardsContent} />
<Stats1 data={stats1Data} />
<Stats data={stats1Data} />
<FactSnippets
{...factSnippetsContent}
factSnippetsCardContent={factSnippetsCardContent}
Expand Down