use url in hook

This commit is contained in:
Alex Holliday committed 2025-02-10 13:46:26 -08:00
1 parent 01d1f8e173
commit 55321ffc3c
3 files changed
+10 -7

No files matched your search

@@ -4,7 +4,7 @@ import { networkService } from "../../../../main";
import { createToast } from "../../../../Utils/toastUtils";
import { useNavigate } from "react-router-dom";
const useStatusPageDelete = (fetchStatusPage, url = "/status/public") => {
const useStatusPageDelete = (fetchStatusPage, url) => {
const [isLoading, setIsLoading] = useState(false);
const navigate = useNavigate();
const { authToken } = useSelector((state) => state.auth);