Skip to content

Commit

Permalink
Fix(crm): Date types
Browse files Browse the repository at this point in the history
  • Loading branch information
arimet committed Jul 29, 2024
1 parent 8077ff3 commit 06849fc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion examples/crm/src/activity/ActivityLogContactNoteCreated.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ export function ActivityLogContactNoteCreated({
</Link>
</Typography>

<ActivityLogDate date={contactNote.date} />
<ActivityLogDate
date={contactNote.date.toISOString()}
/>
</>
}
text={contactNote.text}
Expand Down
2 changes: 1 addition & 1 deletion examples/crm/src/activity/ActivityLogDealNoteCreated.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function ActivityLogDealNoteCreated({
</Link>
</Typography>

<ActivityLogDate date={dealNote.date} />
<ActivityLogDate date={dealNote.date.toISOString()} />
</>
}
text={dealNote.text}
Expand Down
4 changes: 2 additions & 2 deletions examples/crm/src/dataProvider/activity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async function getContactsLog(
sale: salesDict.get(contactNote.sales_id) as Sale,
contact,
contactNote,
date: contactNote.date,
date: contactNote.date.toISOString(),
};
})
);
Expand Down Expand Up @@ -192,7 +192,7 @@ async function getDealsLog(
sale: salesDict.get(dealNote.sales_id) as Sale,
deal,
dealNote,
date: dealNote.date,
date: dealNote.date.toISOString(),
};
})
);
Expand Down

0 comments on commit 06849fc

Please sign in to comment.