move bulk monitors hook to monitorHooks
This commit is contained in:
1 parent
df69d06048
commit
cc8949538f
5 files changed
+36
-32
No files matched your search
@@ -12,7 +12,7 @@ import UploadFile from "./Upload";
|
||||
import { useSelector } from "react-redux";
|
||||
import { useNavigate } from "react-router";
|
||||
import { Trans, useTranslation } from "react-i18next";
|
||||
import { useBulkMonitors } from "../../../Hooks/useBulkMonitors";
|
||||
import { useCreateBulkMonitors } from "../../../Hooks/monitorHooks";
|
||||
|
||||
const BulkImport = () => {
|
||||
const theme = useTheme();
|
||||
@@ -26,7 +26,7 @@ const BulkImport = () => {
|
||||
{ name: t("bulkImport.title"), path: `/uptime/bulk-import` },
|
||||
];
|
||||
|
||||
const [createBulkMonitors, hookLoading] = useBulkMonitors();
|
||||
const [createBulkMonitors, hookLoading] = useCreateBulkMonitors();
|
||||
|
||||
const handleSubmit = async () => {
|
||||
if (!selectedFile) {
|
||||
|
||||
Reference in new issue
Block a user