Files
donetick/src/views/Chores/CompactCard.jsx
Mo Tarbin f0e0c0e4fc Add SmartTaskInput with Custom Renderer.
Change to use `@tanstack/react-query`
Add Global ErrorProvider
Add limited Support for offline version
Fix issue with calendar display +1 day
2025-04-24 01:03:40 -04:00

36 lines
622 B
JavaScript

import { Box, Checkbox, Typography } from '@mui/joy'
export const CompactCard = ({
chore,
performers,
onChoreUpdate,
onChoreRemove,
userLabels,
sx,
viewOnly,
onChipClick,
}) => {
return (
<Box
sx={{
display: 'flex',
alignItems: 'center',
gap: 1,
flex: 1,
}}
>
<Checkbox
// checked={!!task.completedAt}
// onChange={() => handleToggle(task.id)}
/>
<Typography
sx={{
textDecoration: chore.completedAt ? 'line-through' : 'none',
}}
>
{chore.name}
</Typography>
</Box>
)
}