Skip to content

Commit

Permalink
feat: add toast error
Browse files Browse the repository at this point in the history
  • Loading branch information
hz002 committed Nov 21, 2024
1 parent 2638a3b commit bf5b054
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ export const SeedPhrase: React.FC<Props> = ({
toastHide();
}
} else {
toast.show(t('page.nextComponent.createNewAddress.verificationFailed'));
toast.error(t('page.nextComponent.createNewAddress.verificationFailed'));
setShuffleCount(val => val + 1);
setSelectArr([]);
}
Expand Down
3 changes: 3 additions & 0 deletions apps/mobile/src/components2024/Toast/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
IconTick,
IconToastSuccess,
} from '@/assets/icons/common';
import IconError from '@/assets2024/icons/common/cancel.svg';
import React from 'react';
import { ThemeColors2024 } from '@/constant/theme';

Expand Down Expand Up @@ -91,11 +92,13 @@ export const toastWithIcon =
const info = toastWithIcon(IconCommonInfo);

const success = toastWithIcon(IconTick);
const error = toastWithIcon(IconError);

export const toast = {
show,
info,
success,
error,
positions: Toast.positions,
};

Expand Down

0 comments on commit bf5b054

Please sign in to comment.