Spaces:
Sleeping
Sleeping
v4.0: Update nav version badge + add Q&A link
Browse files- web/components/nav.tsx +2 -3
web/components/nav.tsx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
import Link from "next/link";
|
| 4 |
import { usePathname } from "next/navigation";
|
| 5 |
-
import { ShieldCheck, Menu, X, Crown, GitCompare } from "lucide-react";
|
| 6 |
import { useState, useEffect } from "react";
|
| 7 |
import { createClient } from "@/lib/supabase/client";
|
| 8 |
|
|
@@ -27,7 +27,6 @@ export function Nav() {
|
|
| 27 |
const user = data.user;
|
| 28 |
setUserEmail(user?.email || null);
|
| 29 |
if (user) {
|
| 30 |
-
// Fetch role from database — no hardcoded emails
|
| 31 |
const { data: profile } = await supabase
|
| 32 |
.from("profiles")
|
| 33 |
.select("role")
|
|
@@ -44,7 +43,7 @@ export function Nav() {
|
|
| 44 |
<Link href="/" className="flex items-center gap-2">
|
| 45 |
<ShieldCheck className="w-5 h-5 text-zinc-900" strokeWidth={2.2} />
|
| 46 |
<span className="font-semibold text-[15px] tracking-tight text-zinc-900">ClauseGuard</span>
|
| 47 |
-
<span className="hidden sm:inline text-[10px] font-medium text-zinc-400 ml-1 border border-zinc-200 px-1.5 py-0.5 rounded">
|
| 48 |
</Link>
|
| 49 |
|
| 50 |
<div className="hidden md:flex items-center gap-1">
|
|
|
|
| 2 |
|
| 3 |
import Link from "next/link";
|
| 4 |
import { usePathname } from "next/navigation";
|
| 5 |
+
import { ShieldCheck, Menu, X, Crown, GitCompare, MessageSquare } from "lucide-react";
|
| 6 |
import { useState, useEffect } from "react";
|
| 7 |
import { createClient } from "@/lib/supabase/client";
|
| 8 |
|
|
|
|
| 27 |
const user = data.user;
|
| 28 |
setUserEmail(user?.email || null);
|
| 29 |
if (user) {
|
|
|
|
| 30 |
const { data: profile } = await supabase
|
| 31 |
.from("profiles")
|
| 32 |
.select("role")
|
|
|
|
| 43 |
<Link href="/" className="flex items-center gap-2">
|
| 44 |
<ShieldCheck className="w-5 h-5 text-zinc-900" strokeWidth={2.2} />
|
| 45 |
<span className="font-semibold text-[15px] tracking-tight text-zinc-900">ClauseGuard</span>
|
| 46 |
+
<span className="hidden sm:inline text-[10px] font-medium text-zinc-400 ml-1 border border-zinc-200 px-1.5 py-0.5 rounded">v4.0</span>
|
| 47 |
</Link>
|
| 48 |
|
| 49 |
<div className="hidden md:flex items-center gap-1">
|