From f2a90ee1f2a596fe0f153bde0e56a3dd0573d3cf Mon Sep 17 00:00:00 2001 From: SupeemAFK Date: Mon, 24 Feb 2025 12:03:40 +0700 Subject: [PATCH] fix: remove-check-time --- apps/web/src/app/page.tsx | 8 +++---- apps/web/src/app/register/layout.tsx | 7 +----- apps/web/src/components/landing/hero.tsx | 27 +++++++++--------------- 3 files changed, 14 insertions(+), 28 deletions(-) diff --git a/apps/web/src/app/page.tsx b/apps/web/src/app/page.tsx index 39ac551f..8d56ca61 100644 --- a/apps/web/src/app/page.tsx +++ b/apps/web/src/app/page.tsx @@ -41,11 +41,9 @@ export default function Home() { }, ]} extra={ - new Date() >= new Date("2025-02-24T12:00:00") ? ( - - - - ) : undefined + + + } /> diff --git a/apps/web/src/app/register/layout.tsx b/apps/web/src/app/register/layout.tsx index 5ecc9055..b71c0b12 100644 --- a/apps/web/src/app/register/layout.tsx +++ b/apps/web/src/app/register/layout.tsx @@ -7,7 +7,7 @@ import Navbar from "@/components/navigate/navbar"; import Spinner from "@/components/spinner"; import { Button } from "@/components/ui/button"; import { fetchClient } from "@/libs/server/client"; -import { notFound, redirect, useRouter } from "next/navigation"; +import { redirect, useRouter } from "next/navigation"; import { useEffect, useState } from "react"; import { steps } from "./form-stepper"; @@ -21,11 +21,6 @@ export default function RegisterLayout({ const router = useRouter(); useEffect(() => { - const deadline = new Date("2025-02-24T12:00:00"); - if (new Date() <= deadline) { - return notFound(); - } - async function checkUser() { try { const { data } = await fetchClient.GET("/auth/me"); diff --git a/apps/web/src/components/landing/hero.tsx b/apps/web/src/components/landing/hero.tsx index 8a8f9e3a..fc5e7aab 100644 --- a/apps/web/src/components/landing/hero.tsx +++ b/apps/web/src/components/landing/hero.tsx @@ -1,5 +1,4 @@ import FadeObserverDiv from "@/components/landing/fade-div"; -import Timer from "@/components/timer"; import Image from "next/image"; import Link from "next/link"; import { Magnetic } from "../animation/magnetics"; @@ -44,22 +43,16 @@ function Hero() { - {new Date() >= new Date("2025-02-24T09:00:00") ? ( - - - - - - ) : ( -
- -
- )} + + + + +