Skip to content

Commit

Permalink
♻️ Refactor LoadingScreen component to use useState hook in LoadingSc…
Browse files Browse the repository at this point in the history
…reen.tsx
  • Loading branch information
leota committed Apr 27, 2024
1 parent ba8915e commit 651b2c9
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions src/pages/3d-skills.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
import Head from "next/head";

import { Suspense, useState } from "react";
import { LoadingScreen } from "@/components/LoadingScreen";
import { TechStack } from "@/components/TechStack/TechStack";
import { NextSeo } from "next-seo";

export default function Skills3DTour() {
const [isLoading, setIsLoading] = useState(true);

return (
<>
<Head>
<title>Skills 3D tour</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="/favicon.ico" />
</Head>
<NextSeo title="3D Skills" />
<main className="h-screen">
<LoadingScreen isLoading={isLoading} setIsLoading={setIsLoading} />
<Suspense fallback={null}>
<TechStack />
</Suspense>
<LoadingScreen />
<TechStack />
</main>
</>
);
Expand Down

0 comments on commit 651b2c9

Please sign in to comment.