From ea9b38cf7645b7044337399ee696724705885fec Mon Sep 17 00:00:00 2001 From: Ruidy Date: Mon, 13 Dec 2021 12:49:20 -0400 Subject: [PATCH] chore: clear dead code, update todo --- TODO.md | 4 +--- src/utils/inputHook.js | 17 ----------------- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 src/utils/inputHook.js 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); - }, - }, - }; -};