add ui for create、modify、delete for tasks
This commit is contained in:
parent
1b468b8454
commit
f350875d90
14 changed files with 138 additions and 36 deletions
|
|
@ -15,6 +15,12 @@ function HabitItem(props: any) {
|
|||
<p className="habit-text"><Emoji text={props.habit_text}></Emoji></p>
|
||||
<ReactMarkdown children={props.habit_notes} />
|
||||
</div>
|
||||
<button className="modify-habit" id={props.id}>
|
||||
<span className="material-icons md-24">create</span>
|
||||
</button>
|
||||
<button className="delete-habit" id={props.id}>
|
||||
<span className="material-icons md-24">clear</span>
|
||||
</button>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,11 @@ export default function Index(props: any){
|
|||
return <HabitItem key={habit.id} id={habit.id} habit_text={habit.text} habit_notes={habit.notes} upCount={habit.counterUp} downCount={habit.counterDown} onChange={props.onChange}/>
|
||||
})
|
||||
const display = <div id="classDisplay">
|
||||
<div className="add-task-input">
|
||||
<input type="text">
|
||||
</input>
|
||||
<button className="submit-button"><Trans>submit</Trans></button>
|
||||
</div>
|
||||
<ul>{allHabits}</ul>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue