-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat: Delete Slashtags Profile #2348
base: master
Are you sure you want to change the base?
Conversation
@@ -79,6 +82,10 @@ export const slashtagsSlice = createSlice({ | |||
const { id } = parse(action.payload.url); | |||
state.profilesCache[id] = action.payload.profile; | |||
}, | |||
deteleProfileCache: (state, action: PayloadAction<{ url: string }>) => { |
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.
typo
deteleProfileCache: (state, action: PayloadAction<{ url: string }>) => { | |
deleteProfileCache: (state, action: PayloadAction<{ url: string }>) => { |
<Button | ||
style={styles.button} | ||
text={t('profile_delete')} | ||
size="large" |
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.
Button should be variant="secondary"
@@ -110,6 +113,23 @@ const ProfileEdit = ({ | |||
} | |||
}; | |||
|
|||
const onDelete = async (): Promise<void> => { | |||
setIsLoading(true); | |||
const res = await deteleProfile(url, slashtagsProfile); |
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.
typo
const res = await deteleProfile(url, slashtagsProfile); | |
const res = await deleteProfile(url, slashtagsProfile); |
Description
Allow user to delete his Slashtags profile. Delete Slashpay as well
Linked Issues/Tasks
#2319
Type of change
New feature
Tests
Detox test