Revize f386a4fe
Přidáno uživatelem Fantič před více než 1 rok
src/pages/LoginPage.tsx | ||
---|---|---|
30 | 30 |
const [password, setPassword] = useState("") |
31 | 31 |
|
32 | 32 |
const lastError = useSelector((state: RootState) => state.user.lastError) |
33 |
|
|
34 | 33 |
const toast = useToast(); |
35 | 34 |
|
36 |
|
|
37 | 35 |
useEffect(() => { |
38 | 36 |
if (lastError) { |
39 | 37 |
toast.closeAll() |
... | ... | |
46 | 44 |
duration: 3000 |
47 | 45 |
}); |
48 | 46 |
} |
49 |
|
|
50 | 47 |
}, [lastError]) |
51 | 48 |
|
52 | 49 |
const dispatch = useDispatch<AppDispatch>() |
Také k dispozici: Unified diff
re #10818 Toast: implementation to pages