diff options
| author | l3wdfut4pwr l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-01-28 16:57:26 +0200 |
|---|---|---|
| committer | l3wdfut4pwr l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-01-28 16:57:26 +0200 |
| commit | b7af1778397c31049ed058dbe5787654514d53ac (patch) | |
| tree | 554a6ddd3a5b2c732a33d5e6d1e73a3cb14c89c4 /src/components/header/ProfileOrLogin.tsx | |
| parent | d2d202362688626dd37394460d5c1560f99b93e4 (diff) | |
add modal tabs
Diffstat (limited to 'src/components/header/ProfileOrLogin.tsx')
| -rw-r--r-- | src/components/header/ProfileOrLogin.tsx | 12 |
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 ( |
