Refactor frequency handling in ChoreEdit and RepeatSection; add points display in ChoreCard
This commit is contained in:
@@ -19,6 +19,7 @@ import {
|
||||
Report,
|
||||
SwitchAccessShortcut,
|
||||
TimesOneMobiledata,
|
||||
Toll,
|
||||
Unarchive,
|
||||
Update,
|
||||
ViewCarousel,
|
||||
@@ -527,6 +528,21 @@ const ChoreCard = ({
|
||||
P{chore.priority}
|
||||
</Chip>
|
||||
)}
|
||||
{/* show points chip if there is points assigned */}
|
||||
{chore.points > 0 && (
|
||||
<Chip
|
||||
sx={{
|
||||
position: 'relative',
|
||||
mr: 0.5,
|
||||
top: 2,
|
||||
zIndex: 1,
|
||||
}}
|
||||
color='success'
|
||||
startDecorator={<Toll />}
|
||||
>
|
||||
{chore.points}
|
||||
</Chip>
|
||||
)}
|
||||
{chore.labelsV2?.map((l, index) => {
|
||||
return (
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user