-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] feat(user_account): added user account deletion feature #423
base: dev
Are you sure you want to change the base?
Conversation
import { Alert } from 'react-native'; | ||
|
||
export function onDeleteAccount(onConfirm: () => void) { | ||
return new Promise(resolve => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to create or use Promises here
} | ||
|
||
export function onDeleteAccountConfirmed() { | ||
return new Promise(resolve => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here also
'Account Deletion Request Has Been Sent', | ||
`Account Deletion takes up to 24 hours.\n\n | ||
During this time, you will be logged out, and access to your account will be blocked.\n\n | ||
If you change your mind please contact us |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to specify translation keys throughout the solution
76dd2ba
to
6a30f56
Compare
6a30f56
to
46106bb
Compare
No description provided.