remove reference to state
This commit is contained in:
1 parent
afece4df65
commit
57f4db8d37
1 file changed
+1
-2
@@ -28,7 +28,6 @@ import { useCreateMonitor } from "../../../Hooks/monitorHooks";
|
|||||||
const CreateMonitor = () => {
|
const CreateMonitor = () => {
|
||||||
// Redux state
|
// Redux state
|
||||||
const { user } = useSelector((state) => state.auth);
|
const { user } = useSelector((state) => state.auth);
|
||||||
const { isLoading } = useSelector((state) => state.uptimeMonitors);
|
|
||||||
|
|
||||||
// Local state
|
// Local state
|
||||||
const [errors, setErrors] = useState({});
|
const [errors, setErrors] = useState({});
|
||||||
@@ -467,7 +466,7 @@ const CreateMonitor = () => {
|
|||||||
variant="contained"
|
variant="contained"
|
||||||
color="accent"
|
color="accent"
|
||||||
disabled={!Object.values(errors).every((value) => value === undefined)}
|
disabled={!Object.values(errors).every((value) => value === undefined)}
|
||||||
loading={isLoading || isCreating}
|
loading={isCreating}
|
||||||
>
|
>
|
||||||
{t("createMonitor")}
|
{t("createMonitor")}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in new issue
Block a user