loading state

This commit is contained in:
Chenyu Huang
2025-08-19 16:29:18 -07:00
parent e32f280f47
commit 68e0a78f70
3 changed files with 54 additions and 42 deletions
+5 -13
View File
@@ -231,12 +231,10 @@ function WizardInner({
Image.prefetch([getStarterPackOgCard(currentProfile!.did, rkey)])
dispatch({type: 'SetProcessing', processing: false})
// If launched from ProfileMenu dialog, notify the dialog and go back
if (fromDialog) {
navigation.goBack()
onSuccess?.()
} else {
// Original behavior for other entry points
navigation.replace('StarterPack', {
name: profile!.handle,
rkey,
@@ -246,19 +244,13 @@ function WizardInner({
}
const onSuccessEdit = () => {
// If launched from ProfileMenu dialog, go back to stay on profile page
if (fromDialog) {
if (navigation.canGoBack()) {
navigation.goBack()
} else {
// Original behavior for other entry points
if (navigation.canGoBack()) {
navigation.goBack()
} else {
navigation.replace('StarterPack', {
name: profile!.handle,
rkey: parsed!.rkey,
})
}
navigation.replace('StarterPack', {
name: currentAccount!.handle,
rkey: parsed!.rkey,
})
}
}