Focused task close account
This package contains all of the UI components needed to assemble the focused tasks for deactivating and deleting users' accounts in accordance with the GDPR "Right to be forgotten".
yarn add @atlaskit/focused-task-close-account
3.0.3
Patch Changes
- Updated dependencies
Note: This component is designed for internal Atlassian development.
External contributors will be able to use this component but will not be able to submit issues.
Note: This component is currently in developer preview.
Please experiment with and test this package, but be aware that the API may change at any time. Use at your own risk, preferably not in production.
This package provides the view components required to assemble the "Right to be forgotten" drawers.
Usage
By providing the building blocks rather than a single complete solution, a simpler and more flexible API can be provided for adjustments, customizations and data-routing.
Start by rendering a FocusedTaskCloseAccount then provide it the necessary screens, plugging in data providing callbacks where necessary.
For example, to assemble the "Delete user" flow, provide the DeleteUserOverviewScreen and DeleteUserContentPreviewScreen.
import {
FocusedTaskCloseAccount,
DeleteUserOverviewScreen,
DeleteUserContentPreviewScreen,
DeactivateUserOverviewScreen,
} from '@atlaskit/focused-task-close-account';
Basic drawer assembly
See code
Delete user drawer
Single screen drawer
Deactivate drawer
Props
isOpen
boolean
required
onClose
function
required
() => undefined
screens
arrayType
required
Arraydefault.ReactNode
submitButton
default.ReactNode
required
default.ReactNode