format
This commit is contained in:
1 parent
4d89213e1c
commit
17b84cbe8a
4 files changed
+19
-4
No files matched your search
@@ -7,7 +7,11 @@ import TextInput from "../../../../Components/Inputs/TextInput/index.jsx";
|
|||||||
import ImageUpload from "../../../../Components/Inputs/ImageUpload/index.jsx";
|
import ImageUpload from "../../../../Components/Inputs/ImageUpload/index.jsx";
|
||||||
import { newOrChangedCredentials } from "../../../../Validation/validation.js";
|
import { newOrChangedCredentials } from "../../../../Validation/validation.js";
|
||||||
import { useDispatch, useSelector } from "react-redux";
|
import { useDispatch, useSelector } from "react-redux";
|
||||||
import { clearAuthState, deleteUser, update } from "../../../../Features/Auth/authSlice.js";
|
import {
|
||||||
|
clearAuthState,
|
||||||
|
deleteUser,
|
||||||
|
update,
|
||||||
|
} from "../../../../Features/Auth/authSlice.js";
|
||||||
import { createToast } from "../../../../Utils/toastUtils.jsx";
|
import { createToast } from "../../../../Utils/toastUtils.jsx";
|
||||||
import { logger } from "../../../../Utils/Logger.js";
|
import { logger } from "../../../../Utils/Logger.js";
|
||||||
import { GenericDialog } from "../../../../Components/Dialog/genericDialog.jsx";
|
import { GenericDialog } from "../../../../Components/Dialog/genericDialog.jsx";
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
import { useCreateMonitor, useUpdateMonitor } from "../../../../../Hooks/v1/monitorHooks.js";
|
import {
|
||||||
|
useCreateMonitor,
|
||||||
|
useUpdateMonitor,
|
||||||
|
} from "../../../../../Hooks/v1/monitorHooks.js";
|
||||||
const useInfrastructureSubmit = () => {
|
const useInfrastructureSubmit = () => {
|
||||||
const [createMonitor, isCreating] = useCreateMonitor();
|
const [createMonitor, isCreating] = useCreateMonitor();
|
||||||
const [updateMonitor, isUpdating] = useUpdateMonitor();
|
const [updateMonitor, isUpdating] = useUpdateMonitor();
|
||||||
|
|||||||
@@ -7,7 +7,10 @@ import { useNavigate } from "react-router-dom";
|
|||||||
import { useTheme } from "@emotion/react";
|
import { useTheme } from "@emotion/react";
|
||||||
import { Area, AreaChart, CartesianGrid, ResponsiveContainer, Tooltip } from "recharts";
|
import { Area, AreaChart, CartesianGrid, ResponsiveContainer, Tooltip } from "recharts";
|
||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
import { formatDateWithTz, formatDurationSplit } from "../../../../../../Utils/timeUtils.js";
|
import {
|
||||||
|
formatDateWithTz,
|
||||||
|
formatDurationSplit,
|
||||||
|
} from "../../../../../../Utils/timeUtils.js";
|
||||||
import { useMonitorUtils } from "../../../../../../Hooks/v1/useMonitorUtils.js";
|
import { useMonitorUtils } from "../../../../../../Hooks/v1/useMonitorUtils.js";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|||||||
@@ -16,7 +16,12 @@ import { useState } from "react";
|
|||||||
import { useTheme } from "@emotion/react";
|
import { useTheme } from "@emotion/react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { useSelector, useDispatch } from "react-redux";
|
import { useSelector, useDispatch } from "react-redux";
|
||||||
import { setTimezone, setMode, setLanguage, setShowURL } from "../../../Features/UI/uiSlice.js";
|
import {
|
||||||
|
setTimezone,
|
||||||
|
setMode,
|
||||||
|
setLanguage,
|
||||||
|
setShowURL,
|
||||||
|
} from "../../../Features/UI/uiSlice.js";
|
||||||
import SettingsStats from "./SettingsStats.jsx";
|
import SettingsStats from "./SettingsStats.jsx";
|
||||||
|
|
||||||
import { useFetchSettings, useSaveSettings } from "../../../Hooks/v1/settingsHooks.js";
|
import { useFetchSettings, useSaveSettings } from "../../../Hooks/v1/settingsHooks.js";
|
||||||
|
|||||||
Reference in new issue
Block a user