additional features, refinement and more control over the app from admin side, better bookings UX

This commit is contained in:
mikicvi
2025-09-25 20:23:18 +01:00
parent 6d3202e385
commit b89d91ade2
20 changed files with 1358 additions and 328 deletions
+5 -1
View File
@@ -15,6 +15,8 @@ interface DashboardHeaderProps {
userId: string;
email: string;
role: 'user' | 'admin';
name?: string;
surname?: string;
};
}
@@ -101,7 +103,9 @@ export function DashboardHeader({ user }: DashboardHeaderProps) {
className='flex items-center space-x-2'
>
<User className='h-4 w-4 text-gray-600' />
<span className='text-sm text-gray-700'>{user.email.split('@')[0]}</span>
<span className='text-sm text-gray-700'>
{user.name && user.surname ? `${user.name} ${user.surname}` : user.email.split('@')[0]}
</span>
</Button>
<Button variant='outline' size='sm' onClick={handleLogout} disabled={isLoggingOut}>