mirror of
https://github.com/rjNemo/meal_planner
synced 2026-06-06 02:26:49 +00:00
chore: clear dead code, update todo
This commit is contained in:
parent
0ce8b1cfc2
commit
ea9b38cf76
2 changed files with 1 additions and 20 deletions
4
TODO.md
4
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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
Loading…
Reference in a new issue