diff --git a/TODO.md b/TODO.md index c61b4a1..0649952 100644 --- a/TODO.md +++ b/TODO.md @@ -1,8 +1,6 @@ # TO DO - [ ] send message after contact form validation (confirm to sender and msg+info to admin) -- [ ] Local storage of preferences -- [ ] Firebase firestore and functions - [ ] Breadcrumb - [ ] Cookie bar - [x] code cleanup (props and refactoring) @@ -12,6 +10,6 @@ - [ ] Decoupled application and data layers. Abstract such that the front end does not know where the data comes from. - [x] Create PageLayout component - [ ] Use Css-in-Js -- [ ] Redirect to 404 +- [x] Redirect to 404 - [x] Typescript - [x] strict typing diff --git a/src/utils/inputHook.js b/src/utils/inputHook.js deleted file mode 100644 index b777e7d..0000000 --- a/src/utils/inputHook.js +++ /dev/null @@ -1,17 +0,0 @@ -import { useState } from "react"; - -export const useInput = (initialValue) => { - const [value, setValue] = useState(initialValue); - - return { - value, - setValue, - reset: () => setValue(""), - bind: { - value, - onChange: (e) => { - setValue(e.target.value); - }, - }, - }; -};