mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
feat: add react-hot-toast for toast notifs
This commit is contained in:
8
src/contexts/ToastContext.ts
Normal file
8
src/contexts/ToastContext.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { createContext } from 'react';
|
||||
import toast from 'react-hot-toast';
|
||||
|
||||
const ToastContext = createContext<{
|
||||
toast: typeof toast;
|
||||
}>({ toast });
|
||||
|
||||
export default ToastContext;
|
||||
Reference in New Issue
Block a user