refactor: update navigation links and search parameters across authenticated routes
This commit is contained in:
@@ -102,7 +102,7 @@ function Layout() {
|
||||
</Sheet>
|
||||
|
||||
{/* Brand */}
|
||||
<Link to={user.isAdmin ? "/dashboard" : "/planes"} className="hidden items-center gap-2 md:flex">
|
||||
<Link to="/dashboard" className="hidden items-center gap-2 md:flex">
|
||||
<span className="inline-flex h-8 w-25 items-center justify-center rounded-xl bg-primary/10 text-primary font-bold">
|
||||
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS8C2SvZe281wTNc9werkudO9aJiX3dOZm9T3s5DAfS0OUOvDbgc_WC61U_esY8GE8bZoI&usqp=CAU" alt="" />
|
||||
</span>
|
||||
@@ -165,6 +165,7 @@ function Sidebar({ onNavigate }: { onNavigate?: () => void }) {
|
||||
<Link
|
||||
key={item.to}
|
||||
to={item.to}
|
||||
search={{ ...(item.to === '/planes' ? { plan: '' } : {}) }}
|
||||
activeOptions={{ exact: true }}
|
||||
activeProps={{ className: "bg-primary/10 text-foreground" }}
|
||||
className="group inline-flex items-center gap-3 rounded-xl px-3 py-2 text-sm text-muted-foreground hover:bg-primary/10 hover:text-foreground"
|
||||
|
||||
Reference in New Issue
Block a user