import { Box, Card, Grid, List, Typography } from '@mui/joy' import moment from 'moment' import HistoryCard from '../History/HistoryCard' const DemoHistory = () => { const allHistory = [ { id: 32, choreId: 12, completedAt: moment().hour(4).format(), completedBy: 1, assignedTo: 1, notes: null, dueDate: moment().format(), }, { id: 31, choreId: 12, completedAt: moment().day(-1).format(), completedBy: 1, assignedTo: 1, notes: 'Need to be replaced with a new one', dueDate: moment().day(-2).format(), }, { id: 31, choreId: 12, completedAt: moment().day(-10).hour(1).format(), completedBy: 2, assignedTo: 1, notes: null, dueDate: moment().day(-10).format(), }, ] const performers = [ { userId: 1, displayName: 'Ryan', }, { userId: 2, displayName: 'Sarah', }, ] return ( <> {allHistory.map((historyEntry, index) => (
))}
History with a purpose Keep track of all your chores and tasks with ease. Donetick records due dates, completion dates, and who completed each task. Any notes added to tasks are also tracked, providing a complete history for your reference. Stay organized and informed with detailed task tracking. ) } export default DemoHistory