+
+ Assign Points
+
+ Assign points to this task and user will earn points when they
+ completed it
+
+
+ -1}
+ onClick={event => {
+ event.preventDefault()
+ if (points > -1) {
+ setPoints(-1)
+ } else {
+ setPoints(1)
+ }
+ }}
+ color={points !== -1 ? 'success' : 'neutral'}
+ variant={points !== -1 ? 'solid' : 'outlined'}
+ // endDecorator={points !== -1 ? 'On' : 'Off'}
+ slotProps={{
+ endDecorator: {
+ sx: {
+ minWidth: 24,
+ },
+ },
+ }}
+ />
+
+
+ {points != -1 && (
+