fix some style.css problem
This commit is contained in:
parent
d243dbaa7d
commit
a1c92e4e2c
8 changed files with 52 additions and 40 deletions
|
|
@ -1,4 +1,3 @@
|
|||
import Emoji from "react-emoji-render";
|
||||
import * as React from "react";
|
||||
import ReactMarkdown from "react-markdown";
|
||||
|
||||
|
|
@ -11,7 +10,7 @@ function DailyItem(props: any) {
|
|||
<div className="todo-item" id={props.id}>
|
||||
<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>
|
||||
<ReactMarkdown children={props.daily_text} />
|
||||
<ReactMarkdown children={props.daily_notes} />
|
||||
</div>
|
||||
<button className="task-operation">
|
||||
|
|
|
|||
|
|
@ -43,7 +43,13 @@ export default function Index(props: any) {
|
|||
</div>
|
||||
</TabPanel>
|
||||
<TabPanel>
|
||||
<ul>{completedDailies}</ul>
|
||||
<div className="task-submit">
|
||||
<input className="task-input-box" type="text" placeholder={t('Add Daily Task')} onChange={event => setTitle(event.target.value)} value={title} />
|
||||
<button className="submit-button" id="add-daily" onClick={function (e) { setTitle(""); props.onChange(e) }} name={title}><Trans>submit</Trans></button>
|
||||
</div>
|
||||
<div className="task-panel">
|
||||
<ul>{completedDailies}</ul>
|
||||
</div>
|
||||
</TabPanel>
|
||||
</Tabs>
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,12 @@ export default function Index(props: any) {
|
|||
<input className="task-input-box" type="text" placeholder={t('Add Habit')} onChange={event => setTitle(event.target.value)} value={title} />
|
||||
<button className="submit-button" id="add-habit" onClick={function (e) { setTitle(""); props.onChange(e) }} name={title}><Trans>submit</Trans></button>
|
||||
</div>
|
||||
<ul>{allHabits}</ul>
|
||||
<div className="task-panel">
|
||||
<ul>
|
||||
{allHabits}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
return (display);
|
||||
|
|
|
|||
|
|
@ -23,7 +23,10 @@ export default function Index(props: any) {
|
|||
<input className="task-input-box" type="text" placeholder={t('Add Reward')} onChange={event => setTitle(event.target.value)} value={title} />
|
||||
<button className="submit-button" id="add-reward" onClick={function (e) { setTitle(""); props.onChange(e) }} name={title}><Trans>submit</Trans></button>
|
||||
</div>
|
||||
<ul>{allRewards}</ul>
|
||||
<div className="task-panel">
|
||||
<ul>{allRewards}</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
return (display);
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ function TodoItem(props: any) {
|
|||
return (
|
||||
<div className="todo-item" id={props.id}>
|
||||
<input type="checkbox" className="checkbox" id={props.id} onChange={props.onChange} checked={props.completed} />
|
||||
<div>
|
||||
<div className="todo-content">
|
||||
<p><Emoji text={props.todo_text}></Emoji></p>
|
||||
<ReactMarkdown children={props.todo_notes} />
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -35,10 +35,18 @@ export default function Index(props: any) {
|
|||
<input className="task-input-box" type="text" placeholder={t('Add Todo')} onChange={event => setTitle(event.target.value)} value={title} />
|
||||
<button className="submit-button" id="add-todo" onClick={function (e) { setTitle(""); props.onChange(e) }} name={title}><Trans>submit</Trans></button>
|
||||
</div>
|
||||
<ul>{incompleteTodos}</ul>
|
||||
<div className="task-panel">
|
||||
<ul>{incompleteTodos}</ul>
|
||||
</div>
|
||||
</TabPanel>
|
||||
<TabPanel>
|
||||
<ul>{completedTodos}</ul>
|
||||
<div className="task-submit">
|
||||
<input className="task-input-box" type="text" placeholder={t('Add Todo')} onChange={event => setTitle(event.target.value)} value={title} />
|
||||
<button className="submit-button" id="add-todo" onClick={function (e) { setTitle(""); props.onChange(e) }} name={title}><Trans>submit</Trans></button>
|
||||
</div>
|
||||
<div className="task-panel">
|
||||
<ul>{completedTodos}</ul>
|
||||
</div>
|
||||
</TabPanel>
|
||||
</Tabs>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue