2021-11-16 18:53:03 +05:30
|
|
|
import Emoji from "react-emoji-render";
|
|
|
|
|
import * as React from "react";
|
2021-10-19 10:54:06 +05:30
|
|
|
|
|
|
|
|
function HabitItem(props: any) {
|
|
|
|
|
return (
|
|
|
|
|
<div className="habit-item" id={props.id}>
|
|
|
|
|
<button className="habit-plus" id={"plus"+props.id} onClick={props.onChange}>
|
|
|
|
|
+{props.upCount}
|
|
|
|
|
</button>
|
2021-11-16 18:53:03 +05:30
|
|
|
<p className="habit-text"><Emoji text = {props.habit_text}></Emoji></p>
|
2021-10-19 10:54:06 +05:30
|
|
|
<button className="habit-minus" id={"mins"+props.id} onClick={props.onChange}>
|
|
|
|
|
-{props.downCount}
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default HabitItem
|