mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 01:54:43 +00:00
Refactor authentication and account management with modular UI components (#242)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { useEffect } from 'react';
|
||||
import { showErrorToast } from '../../../components/ui/toast/toast';
|
||||
|
||||
export const useActionErrorToast = (error: string | undefined | null) => {
|
||||
useEffect(() => {
|
||||
if (error) showErrorToast(error);
|
||||
}, [error]);
|
||||
};
|
||||
Reference in New Issue
Block a user