This commit is contained in:
lendry
2026-07-10 12:14:06 +03:00
parent a4b4577c55
commit a0966e7ba2
6 changed files with 112 additions and 17 deletions

View File

@@ -32,7 +32,8 @@ export function PinLockModal({ open, isSubmitting, error, onSubmit, onLogout }:
return (
<Dialog open={open} onOpenChange={() => undefined}>
<DialogContent
className="relative !top-[max(1.5rem,10vh)] !-translate-y-0 [&>button]:hidden"
placement="upper"
className="relative [&>button]:hidden"
onPointerDownOutside={(event) => event.preventDefault()}
onEscapeKeyDown={(event) => event.preventDefault()}
>
@@ -74,6 +75,19 @@ export function PinLockModal({ open, isSubmitting, error, onSubmit, onLogout }:
<Button type="submit" size="lg" className="w-full rounded-[18px]" disabled={isSubmitting || !isPinInputComplete(pin)}>
{isSubmitting ? 'Проверяем...' : 'Разблокировать'}
</Button>
{onLogout ? (
<Button
type="button"
variant="ghost"
size="lg"
className="w-full rounded-[18px] text-[#6b6f7b]"
disabled={isSubmitting}
onClick={onLogout}
>
<DoorOpen className="mr-2 h-4 w-4" />
Выйти из аккаунта
</Button>
) : null}
</form>
</DialogContent>
</Dialog>