new feature: add task

This commit is contained in:
kkzzhizhou 2021-11-23 20:11:19 +08:00
parent 070b437bab
commit bfb4ae627f
7 changed files with 74 additions and 35 deletions

View file

@ -5,6 +5,7 @@ import ReactMarkdown from "react-markdown";
function DailyItem(props: any) {
return (
<div className="todo-item" id={props.id}>
{console.log(props)}
<input type="checkbox" className="checkbox" id={props.id} onChange={props.onChange} checked={props.completed} />
<div className="todo-content">
<p><Emoji text={props.daily_text}></Emoji></p>