chore: fetch to get in redux thunks files name

This commit is contained in:
Ismail Ali
2025-06-21 10:15:05 +02:00
parent dd76665848
commit 7740806952
42 changed files with 144 additions and 126 deletions

View File

@@ -9,7 +9,7 @@ import { useAdminAuth } from "./hooks/useAdminAuth";
import handleAdminLogin from "./handlers/handleAdminLogin";
import { useDispatch } from "react-redux";
import { AppDispatch } from "../../../redux/store";
import { fetchSystemSettingsThunk } from "../../../redux/thunks/fetchSystemSettingsThunk";
import { getSystemSettingsThunk } from "../../../redux/thunks/getSystemSettingsThunk";
import handleGeneralSubmit from "./handlers/handleGeneralSubmit";
const GeneralSettings: React.FC = () => {
@@ -52,7 +52,7 @@ const GeneralSettings: React.FC = () => {
useEffect(() => {
if (!systemSettings.deviceName) {
dispatch(fetchSystemSettingsThunk());
dispatch(getSystemSettingsThunk());
}
}, []);
/*