Refactor frequency handling in ChoreEdit and RepeatSection; add points display in ChoreCard

This commit is contained in:
Mo Tarbin
2025-03-24 01:27:31 -04:00
parent 91cb2106a9
commit c3d0fbaf06
4 changed files with 22 additions and 14 deletions

View File

@@ -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