improvement: account setting added to header in order to choose organizations/subscribtions/etc

This commit is contained in:
2026-04-29 21:55:46 +03:30
parent ca9e684ab4
commit 7a847d5326
12 changed files with 517 additions and 82 deletions

View File

@@ -11,7 +11,6 @@ import {
FlaskConical,
FileText,
CreditCard,
Building2
} from 'lucide-react';
const menu = [
@@ -22,19 +21,19 @@ const menu = [
{ name: 'Lab Management', path: '/lab', icon: FlaskConical },
{ name: 'Billing', path: '/billing', icon: CreditCard },
{ name: 'Reports', path: '/reports', icon: FileText },
{ name: 'Organizations', path: '/select-organization', icon: Building2 },
];
function Sidebar() {
const pathname = usePathname();
return (
<aside className="w-64 bg-background-secondary/90 border-r border-border text-text-primary flex flex-col p-4">
<div className="mb-6 pb-4 border-b border-border">
<h1 className="text-xl font-semibold tracking-tight">DyoLink</h1>
<aside className="w-64 bg-background-secondary/90 border-r border-border text-text-primary flex flex-col">
<div className="h-[71px] px-4 flex items-center">
<h1 className="text-lg font-medium tracking-tight">DyoLink</h1>
</div>
<div className="mx-4 border-b border-border/70" />
<nav className="flex flex-col gap-2">
<nav className="flex flex-col gap-2 p-4">
{menu.map((item) => {
const Icon = item.icon;
const isActive = pathname === item.path;