before pulling from master
This commit is contained in:
@@ -83,6 +83,9 @@ function weekStart(){
|
|||||||
return db_date;
|
return db_date;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const net_id = ReactSession.get("net_id");
|
||||||
|
|
||||||
|
//to set nutritional goal for the week
|
||||||
const [goalInput, setGoalInput] = useReducer(
|
const [goalInput, setGoalInput] = useReducer(
|
||||||
(state, newState) => ({ ...state, ...newState }),
|
(state, newState) => ({ ...state, ...newState }),
|
||||||
{
|
{
|
||||||
@@ -100,7 +103,6 @@ const [goalInput, setGoalInput] = useReducer(
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
const net_id = ReactSession.get("net_id");
|
|
||||||
|
|
||||||
const handleSubmit = evt => {
|
const handleSubmit = evt => {
|
||||||
let data = {goalInput}
|
let data = {goalInput}
|
||||||
@@ -221,7 +223,7 @@ const handleSubmit = evt => {
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<h2>
|
<h2>
|
||||||
|
|
||||||
So Far This Week:
|
So Far This Week:
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user