chore: deploy final layout and routing polish to live
This commit is contained in:
@@ -395,7 +395,7 @@ export function PresetGroup({
|
||||
<div
|
||||
style={{
|
||||
width: "100%",
|
||||
height: 170,
|
||||
height: 300,
|
||||
background: "oklch(0.14 0.008 60 / 0.7)",
|
||||
borderBottom: "1px solid var(--hairline)",
|
||||
display: "grid",
|
||||
|
||||
@@ -87,6 +87,13 @@ export default function OnboardingApp() {
|
||||
// ── transitions ──────────────────────────────────────────────────────
|
||||
const confirmFork = () => {
|
||||
if (!forkChoice) return;
|
||||
if (forkChoice === "undecided") {
|
||||
// Bypasses the questionnaire and goes straight to the Name Workspace step!
|
||||
setPath("entrepreneur");
|
||||
setStep(3); // step === 3 is Page 5 (Name your workspace)
|
||||
setStage("path");
|
||||
return;
|
||||
}
|
||||
setPath(forkChoice);
|
||||
setStep(0);
|
||||
setStage("path");
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { VIBNSidebar } from "@/components/layout/vibn-sidebar";
|
||||
import { ReactNode, useEffect, useState } from "react";
|
||||
import { ReactNode } from "react";
|
||||
import { useParams } from "next/navigation";
|
||||
import { Toaster } from "sonner";
|
||||
|
||||
@@ -9,33 +9,6 @@ export default function ProjectsLayout({ children }: { children: ReactNode }) {
|
||||
const params = useParams();
|
||||
const workspace = params.workspace as string;
|
||||
|
||||
const [isAgency, setIsAgency] = useState<boolean | null>(null);
|
||||
|
||||
useEffect(() => {
|
||||
fetch(`/api/workspaces/${workspace}`, {
|
||||
credentials: "include",
|
||||
cache: "no-store",
|
||||
})
|
||||
.then((res) => res.json())
|
||||
.then((data) => setIsAgency(!!data.isAgency))
|
||||
.catch(() => setIsAgency(false));
|
||||
}, [workspace]);
|
||||
|
||||
// While loading, just render the background
|
||||
if (isAgency === null) {
|
||||
return <div style={{ height: "100vh", background: "#f6f4f0" }} />;
|
||||
}
|
||||
|
||||
// Agency users provide their own full-screen layouts (e.g. AgencyDashboard)
|
||||
if (isAgency) {
|
||||
return (
|
||||
<>
|
||||
{children}
|
||||
<Toaster position="top-center" />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user