Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dmy147 committed Nov 28, 2024
1 parent a35c639 commit 0a19660
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/ui/views/ApprovalManagePage/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -540,10 +540,10 @@
}

&.is-danger.tip-recent-revokes .ant-tooltip-inner {
min-width: 440px;
min-width: 460px;
}
&.is-warning.tip-recent-revokes .ant-tooltip-inner {
min-width: 440px;
min-width: 460px;
}
}

Expand Down
6 changes: 5 additions & 1 deletion src/ui/views/NewUserImport/BackupSeedPhrase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ export const BackupSeedPhrase = () => {
seedPhrase: '',
passphrase: '',
});
history.replace('/new-user/create-seed-phrase');
if (history.length) {
history.goBack();
} else {
history.replace('/new-user/create-seed-phrase');
}
}}
step={1}
>
Expand Down
6 changes: 5 additions & 1 deletion src/ui/views/NewUserImport/CreateSeedPhrase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ export const CreateSeedPhrase = () => {
return (
<Card
onBack={() => {
history.replace('/new-user/guide');
if (history.length) {
history.goBack();
} else {
history.replace('/new-user/guide');
}
}}
title={t('page.newUserImport.createNewAddress.title')}
>
Expand Down
6 changes: 5 additions & 1 deletion src/ui/views/NewUserImport/ImportGnosisAddress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ export const NewUserImportGnosisAddress = () => {
<Container>
<Card
onBack={() => {
history.goBack();
if (history.length) {
history.goBack();
} else {
history.replace('/new-user/import-list');
}
clearStore();
}}
step={1}
Expand Down
6 changes: 5 additions & 1 deletion src/ui/views/NewUserImport/ImportHardWare.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ export const NewUserImportHardware = () => {
<Card
step={2}
onBack={() => {
history.replace(`/new-user/import/${type}/set-password`);
if (history.length) {
history.goBack();
} else {
history.replace(`/new-user/import/${type}/set-password`);
}
}}
className="flex flex-col justify-center"
>
Expand Down
8 changes: 7 additions & 1 deletion src/ui/views/NewUserImport/ImportList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ export const ImportWalletList = () => {
return (
<Card
className="relative"
onBack={history.goBack}
onBack={() => {
if (history.length) {
history.goBack();
} else {
history.replace('/new-user/guide');
}
}}
title={t('page.newUserImport.importList.title')}
>
<div className="mt-24 flex flex-col items-center justify-center gap-16">
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/NewUserImport/ImportPrivateKey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const NewUserImportPrivateKey = () => {
type="password"
autoFocus
spellCheck={false}
placeholder="input private key"
placeholder="Input private key"
onChange={(e) => {
setValue(e.target.value);
}}
Expand Down
6 changes: 5 additions & 1 deletion src/ui/views/NewUserImport/ImportSeedPhrase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ export const ImportSeedPhrase = () => {
return (
<Card
onBack={() => {
history.replace('/new-user/import-list');
if (history.length) {
history.goBack();
} else {
history.replace('/new-user/import-list');
}
}}
step={1}
className="flex flex-col"
Expand Down

0 comments on commit 0a19660

Please sign in to comment.