mirror of
https://github.com/rjNemo/meal_planner
synced 2026-06-12 13:26:45 +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
|
# TO DO
|
||||||
|
|
||||||
- [ ] send message after contact form validation (confirm to sender and msg+info to admin)
|
- [ ] send message after contact form validation (confirm to sender and msg+info to admin)
|
||||||
- [ ] Local storage of preferences
|
|
||||||
- [ ] Firebase firestore and functions
|
|
||||||
- [ ] Breadcrumb
|
- [ ] Breadcrumb
|
||||||
- [ ] Cookie bar
|
- [ ] Cookie bar
|
||||||
- [x] code cleanup (props and refactoring)
|
- [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.
|
- [ ] Decoupled application and data layers. Abstract such that the front end does not know where the data comes from.
|
||||||
- [x] Create PageLayout component
|
- [x] Create PageLayout component
|
||||||
- [ ] Use Css-in-Js
|
- [ ] Use Css-in-Js
|
||||||
- [ ] Redirect to 404
|
- [x] Redirect to 404
|
||||||
- [x] Typescript
|
- [x] Typescript
|
||||||
- [x] strict typing
|
- [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