redirect on delete
This commit is contained in:
1 parent
2087202eea
commit
532cbe222b
3 files changed
+12
-7
No files matched your search
@@ -2,11 +2,9 @@ import { useSelector } from "react-redux";
|
||||
import { useState } from "react";
|
||||
import { networkService } from "../../../../main";
|
||||
import { createToast } from "../../../../Utils/toastUtils";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
|
||||
const useStatusPageDelete = (fetchStatusPage, url) => {
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
const navigate = useNavigate();
|
||||
const { authToken } = useSelector((state) => state.auth);
|
||||
const deleteStatusPage = async () => {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user