Implement subtasks view and settings option,
clean up CSS
This commit is contained in:
parent
0ac05ef6d3
commit
916236db5d
13 changed files with 257 additions and 90 deletions
|
|
@ -3,11 +3,13 @@ import * as React from "react";
|
|||
import ReactMarkdown from "react-markdown";
|
||||
function RewardItem(props: any) {
|
||||
return (
|
||||
<div className="reward-item" id={props.id}>
|
||||
<button className="reward-click" id={props.id} onClick={props.onChange}>-{props.reward_value}</button>
|
||||
<div className="habit-item" id={props.id}>
|
||||
<div className="habit-button-grp">
|
||||
<button className="habit-button" id={props.id} onClick={props.onChange}>-{props.reward_value}</button>
|
||||
</div>
|
||||
<div>
|
||||
<p className="reward-text"><Emoji text={props.reward_text}></Emoji></p>
|
||||
<ReactMarkdown children={props.reward_notes} />
|
||||
<p className="habit-text"><Emoji text={props.reward_text}></Emoji></p>
|
||||
<ReactMarkdown className="description" children={props.reward_notes} />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue