Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

414 B
Raw Blame
import { createFileRoute, redirect } from "@tanstack/react-router";
import { ProfileSetupFlow } from "@/components/profile-setup/profile-setup-flow";

export const Route = createFileRoute("/_layout/_authenticated/profile-setup")({
  component: ProfileSetupFlow,
  beforeLoad: async ({ context }) => {
    const user = context.user;

    if (user?.name) {
      throw redirect({ to: "/dashboard" });
    }
  },
});