refactor contact form server action

This commit is contained in:
2025-04-04 09:31:08 -04:00
parent 3043f4df8c
commit 64f5cd2c39
8 changed files with 210 additions and 193 deletions
+2 -4
View File
@@ -23,9 +23,7 @@ const useLocalStorage = <T = string>(
window.localStorage.setItem(key, serializer(initialValue));
return initialValue;
}
} catch (
error // eslint-disable-line @typescript-eslint/no-unused-vars
) {
} catch {
return initialValue;
}
});
@@ -51,7 +49,7 @@ const useLocalStorage = <T = string>(
try {
window.localStorage.removeItem(key);
setState(undefined);
} catch (error) {} // eslint-disable-line no-empty, @typescript-eslint/no-unused-vars
} catch {} // eslint-disable-line no-empty
}, [key]);
return [state, set, remove];