summaryrefslogtreecommitdiff
path: root/src/components/header/ProfileOrLogin.tsx
diff options
context:
space:
mode:
authorl3wdfut4pwr l3wdfut4pwr <l3wdfut4pwr@gmail.com>2026-01-28 16:57:26 +0200
committerl3wdfut4pwr l3wdfut4pwr <l3wdfut4pwr@gmail.com>2026-01-28 16:57:26 +0200
commitb7af1778397c31049ed058dbe5787654514d53ac (patch)
tree554a6ddd3a5b2c732a33d5e6d1e73a3cb14c89c4 /src/components/header/ProfileOrLogin.tsx
parentd2d202362688626dd37394460d5c1560f99b93e4 (diff)
add modal tabs
Diffstat (limited to 'src/components/header/ProfileOrLogin.tsx')
-rw-r--r--src/components/header/ProfileOrLogin.tsx12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/components/header/ProfileOrLogin.tsx b/src/components/header/ProfileOrLogin.tsx
index 38c1eb1..874e0fc 100644
--- a/src/components/header/ProfileOrLogin.tsx
+++ b/src/components/header/ProfileOrLogin.tsx
@@ -4,12 +4,20 @@ import Image from 'next/image';
import { useUser } from '../../lib/contexts';
import { Button } from '../ui';
import Link from 'next/link';
-
+import { Dialog, DialogTrigger } from '../ui/dialog';
+import { AuthDialog } from './AuthDialog';
export function ProfileOrLogin() {
const user = useUser();
if (!user) {
- return <Button className="py-2.5 px-3.75">ВОЙТИ</Button>;
+ return (
+ <Dialog>
+ <DialogTrigger asChild>
+ <Button className="py-2.5 px-3.75">ВОЙТИ</Button>
+ </DialogTrigger>
+ <AuthDialog />
+ </Dialog>
+ );
}
return (