mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
Revert "redirect authenticated users from landing, login, and register to dashboard"
This reverts commit c3bd035e6d.
This commit is contained in:
parent
c3bd035e6d
commit
4e800c8824
3 changed files with 1 additions and 27 deletions
|
|
@ -1,9 +1,6 @@
|
|||
"use client";
|
||||
|
||||
import dynamic from "next/dynamic";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useEffect } from "react";
|
||||
import { getBearerToken } from "@/lib/auth-utils";
|
||||
import { HeroSection } from "@/components/homepage/hero-section";
|
||||
|
||||
const FeaturesCards = dynamic(
|
||||
|
|
@ -29,14 +26,6 @@ const CTAHomepage = dynamic(
|
|||
);
|
||||
|
||||
export default function HomePage() {
|
||||
const router = useRouter();
|
||||
|
||||
useEffect(() => {
|
||||
if (getBearerToken()) {
|
||||
router.replace("/dashboard");
|
||||
}
|
||||
}, [router]);
|
||||
|
||||
return (
|
||||
<main className="min-h-screen bg-gradient-to-b from-gray-50 to-gray-100 text-gray-900 dark:from-black dark:to-gray-900 dark:text-white">
|
||||
<HeroSection />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue