Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

feat: Delete Slashtags Profile #2348

wants to merge 1 commit into from

Conversation

limpbrains
Copy link
Collaborator

@limpbrains limpbrains commented Nov 12, 2024

Description

Allow user to delete his Slashtags profile. Delete Slashpay as well

Linked Issues/Tasks

#2319

Type of change

New feature

Tests

Detox test

@limpbrains limpbrains marked this pull request as ready for review November 12, 2024 13:16
@limpbrains limpbrains self-assigned this Nov 14, 2024
@@ -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 }>) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

Suggested change
deteleProfileCache: (state, action: PayloadAction<{ url: string }>) => {
deleteProfileCache: (state, action: PayloadAction<{ url: string }>) => {

<Button
style={styles.button}
text={t('profile_delete')}
size="large"
Copy link
Collaborator

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);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

Suggested change
const res = await deteleProfile(url, slashtagsProfile);
const res = await deleteProfile(url, slashtagsProfile);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants