feat(consent): add privacy settings and scoped revocation flow
This commit is contained in:
1 parent
b2322bc178
commit
3ab6bd91a3
19 files changed
+1868
-8
No files matched your search
@@ -2,7 +2,7 @@ import { Navigate } from "react-router-dom";
|
||||
import { useGetCurrentSession } from "../../../shared/api/endpoints/identity/identity";
|
||||
import { getOnboardingDestination } from "../../../entities/session";
|
||||
import { paths } from "../../../shared/config";
|
||||
import { LoadingState, Page, Section, StatusView } from "../../../shared/ui";
|
||||
import { ButtonLink, LoadingState, Page, Section, StatusView } from "../../../shared/ui";
|
||||
|
||||
export function CandidateOnboardingPage() {
|
||||
const session = useGetCurrentSession();
|
||||
@@ -41,7 +41,19 @@ export function CandidateOnboardingPage() {
|
||||
return (
|
||||
<Page title="Первые шаги" eyebrow="Кабинет кандидата">
|
||||
<Section title={stepTitle} description={description}>
|
||||
<p>Этот шаг сохранен в аккаунте и будет открыт после следующего входа.</p>
|
||||
{step === "candidate_consents" ? (
|
||||
<>
|
||||
<p>
|
||||
Состояние шага хранится на сервере. Просмотрите согласия и выберите каждое действие
|
||||
отдельно.
|
||||
</p>
|
||||
<ButtonLink to={paths.candidate.privacy}>
|
||||
Открыть согласия и настройки приватности
|
||||
</ButtonLink>
|
||||
</>
|
||||
) : (
|
||||
<p>Этот шаг сохранен в аккаунте и будет открыт после следующего входа.</p>
|
||||
)}
|
||||
</Section>
|
||||
</Page>
|
||||
);
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
export { ConsentsPage } from "./ui/consents-page";
|
||||
@@ -0,0 +1,15 @@
|
||||
import { ConsentManagement } from "../../../features/consent-management";
|
||||
import { Page } from "../../../shared/ui";
|
||||
|
||||
export function ConsentsPage() {
|
||||
return (
|
||||
<Page
|
||||
title="Согласия и настройки приватности"
|
||||
eyebrow="Кабинет кандидата"
|
||||
lead="Здесь можно проверить историю каждого согласия и отдельно изменить его состояние."
|
||||
width="wide"
|
||||
>
|
||||
<ConsentManagement />
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user