Refactor ToastProvider and CabinetMaintenance to streamline showToast usage
This commit is contained in:
@@ -45,7 +45,7 @@ export const ToastProvider = ({ children }) => {
|
||||
}
|
||||
|
||||
return (
|
||||
<ToastContext.Provider value={{ showToast }}>
|
||||
<ToastContext.Provider value={ showToast }>
|
||||
{children}
|
||||
{toast.show && (
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user