refactor: optimize ui of error toast
Description
This PR introduces:
- Move all use of
toast.erroron react-query'sonErrorto usetoastFetchError - UI optimization for error toast
| Before | After | |
|---|---|---|
| 1 | ||
| 2 |
Linked Issues
Additional context
@xc2 is attempting to deploy a commit to the RSS3 Team on Vercel.
A member of the Team first needs to authorize it.
@Innei here're icon only and outline design
I prefer the icon only button.
| light | icon | ||
| light | icon | hover | |
| light | outline | ||
| light | outline | hover | |
| dark | icon | ||
| dark | icon | hover | |
| dark | outline | ||
| dark | outline | hover |
btw an accent button here is fine imo as accent buttons are everywhere in the Follow app
Prefer the icon-only button too. But with some background color at hover time? It should be the ghost specification of the button.
Linting and formatting issues were automatically fixed. Please review the changes.
@Innei Two changes are just applied:
- Applied the icon only ghost variant like button
- Move the position of
<Toaster />to ensure the theme of sonner will change immediately after app theme change
https://github.com/user-attachments/assets/bf62bdbd-4237-44d4-89d0-78ea5a0e7293
Awesome!