-
Notifications
You must be signed in to change notification settings - Fork 7
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
ENG-194 Fixed the issue with fetching the DAO info #2717
Conversation
src/pages/create/SafeCreatePage.tsx
Outdated
@@ -37,7 +37,7 @@ export function SafeCreatePage() { | |||
if (daoFound) { | |||
navigate(DAO_ROUTES.dao.relative(addressPrefix, safeAddress)); | |||
} else { | |||
toast.loading(t('failedIndexSafe')); | |||
toast.warning(t('failedIndexSafe'), { duration: Infinity }); |
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.
My UX concern here is that this isn't a warning per se. It's meant to be more of a re-assuring notice for the user. Suggest you use toast.info
instead.
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.
@johnqh you can do:
toast.loading(t('failedIndexSafe'), { dismissible: true });
edit: nevermind, can't dismissible
a loading
toast.
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.
Changed
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.
Agree with Kelvin that we shouldn't change the toast to an error. Otherwise looks good!
src/pages/create/SafeCreatePage.tsx
Outdated
@@ -37,7 +37,7 @@ export function SafeCreatePage() { | |||
if (daoFound) { | |||
navigate(DAO_ROUTES.dao.relative(addressPrefix, safeAddress)); | |||
} else { | |||
toast.loading(t('failedIndexSafe')); | |||
toast.warning(t('failedIndexSafe'), { duration: Infinity }); |
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.
@johnqh you can do:
toast.loading(t('failedIndexSafe'), { dismissible: true });
edit: nevermind, can't dismissible
a loading
toast.
Deploying decent-interface with
|
Latest commit: |
78abbb2
|
Status: | ✅ Deploy successful! |
Preview URL: | https://405e1460.decent-interface.pages.dev |
Branch Preview URL: | https://feature-eng-194-deployed-mes.decent-interface.pages.dev |
…sn't work. Changed to info(...). I did test that yesterday.
Fixed: When a DAO is deployed, 90% of the time we get error retrieving the DAO info because
Fixed: The toast is not dismissible