Created task menu, started habits menu
This commit is contained in:
parent
9fe8405bab
commit
a4ebd7aab3
17 changed files with 623 additions and 37 deletions
18
src/view/Components/Habitsview/HabitItem.tsx
Normal file
18
src/view/Components/Habitsview/HabitItem.tsx
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import * as React from "react";
|
||||
|
||||
function HabitItem(props: any) {
|
||||
console.log(props);
|
||||
return (
|
||||
<div className="habit-item" id={props.id}>
|
||||
<button className="habit-plus" onClick={() => this.handleClick()}>
|
||||
+
|
||||
</button>
|
||||
<p>{props.habit_text}</p>
|
||||
<button className="habit-minus" onClick={() => this.handleClick()}>
|
||||
-
|
||||
</button>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default HabitItem
|
||||
Loading…
Add table
Add a link
Reference in a new issue