add oauth app connected

This commit is contained in:
lendry
2026-06-26 10:49:34 +03:00
parent d5e6b58955
commit b81c0cedbb
18 changed files with 838 additions and 59 deletions

View File

@@ -2,7 +2,7 @@
import { useCallback, useEffect, useMemo, useState } from 'react';
import { useRouter } from 'next/navigation';
import { Car, ChevronRight, FileText, Loader2, Mail, Phone, Trash2, UserRound } from 'lucide-react';
import { Car, ChevronRight, FileKey2, FileText, Loader2, Mail, Phone, Trash2, UserRound } from 'lucide-react';
import { AddressQuickSection } from '@/components/addresses/address-quick-section';
import { DocumentFormDialog } from '@/components/documents/document-form-dialog';
import { ActionTile } from '@/components/id/action-tile';
@@ -337,6 +337,14 @@ export default function DataPage() {
<section className="mt-10">
<h2 className="text-2xl font-medium">Управление данными</h2>
<div className="mt-2 overflow-hidden rounded-[24px] bg-[#f4f5f8]">
<Row
icon={FileKey2}
title="Доступы к данным"
text="Приложения, которым вы разрешили доступ к аккаунту"
onClick={() => router.push('/data/consents')}
/>
</div>
{deletionStatus?.pending && deletionStatus.effectiveAt ? (
<div className="mt-4 rounded-[24px] border border-amber-200 bg-amber-50/80 p-5">
<p className="font-medium text-amber-900">Удаление аккаунта запланировано</p>