mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix all eslint warnings
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { useEffect } from "react";
|
||||
import { toast } from "react-toastify";
|
||||
|
||||
const useSuccess = (message, deps) => {
|
||||
const useSuccess = (message) => {
|
||||
useEffect(() => {
|
||||
if (message) {
|
||||
const toastId = toast.success(message.toString(), {
|
||||
@@ -19,7 +19,7 @@ const useSuccess = (message, deps) => {
|
||||
toast.dismiss(toastId);
|
||||
};
|
||||
}
|
||||
}, deps);
|
||||
}, [message]);
|
||||
};
|
||||
|
||||
export default useSuccess;
|
||||
Reference in New Issue
Block a user