Updated loading states and error states accross app
This commit is contained in:
@@ -4,7 +4,6 @@ import type { ModemSettingsType } from "../../../types/types";
|
||||
import { useWifiAndModem } from "../../../hooks/useCameraWifiandModem";
|
||||
import { useEffect, useState } from "react";
|
||||
import ModemToggle from "./ModemToggle";
|
||||
import { toast } from "sonner";
|
||||
|
||||
const ModemSettings = () => {
|
||||
const [showSettings, setShowSettings] = useState(false);
|
||||
@@ -50,11 +49,6 @@ const ModemSettings = () => {
|
||||
],
|
||||
};
|
||||
modemMutation.mutate(modemConfig);
|
||||
if (modemMutation.error) {
|
||||
toast.error("Failed to update modem settings");
|
||||
return;
|
||||
}
|
||||
toast.success("Modem settings updated");
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user