Skip to content

Commit 8371692

Browse files
committed
Fix CRM demo
1 parent 791a697 commit 8371692

File tree

1 file changed

+34
-32
lines changed

1 file changed

+34
-32
lines changed

examples/crm/src/companies/CompanyShow.tsx

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -216,38 +216,40 @@ const DealsIterator = () => {
216216
<Box>
217217
<List dense>
218218
{deals.map(deal => (
219-
<ListItem
220-
button
221-
key={deal.id}
222-
component={RouterLink}
223-
to={`/deals/${deal.id}/show`}
224-
>
225-
<ListItemText
226-
primary={deal.name}
227-
secondary={
228-
<>
229-
{findDealLabel(dealStages, deal.stage)},{' '}
230-
{deal.amount.toLocaleString('en-US', {
231-
notation: 'compact',
232-
style: 'currency',
233-
currency: 'USD',
234-
currencyDisplay: 'narrowSymbol',
235-
minimumSignificantDigits: 3,
236-
})}
237-
{deal.category ? `, ${deal.category}` : ''}
238-
</>
239-
}
240-
/>
241-
<ListItemSecondaryAction>
242-
<Typography
243-
variant="body2"
244-
color="textSecondary"
245-
component="span"
246-
>
247-
last activity{' '}
248-
{formatDistance(deal.updated_at, now)} ago{' '}
249-
</Typography>
250-
</ListItemSecondaryAction>
219+
<ListItem key={deal.id} disablePadding>
220+
<ListItemButton
221+
component={RouterLink}
222+
to={`/deals/${deal.id}/show`}
223+
>
224+
<ListItemText
225+
primary={deal.name}
226+
secondary={
227+
<>
228+
{findDealLabel(dealStages, deal.stage)},{' '}
229+
{deal.amount.toLocaleString('en-US', {
230+
notation: 'compact',
231+
style: 'currency',
232+
currency: 'USD',
233+
currencyDisplay: 'narrowSymbol',
234+
minimumSignificantDigits: 3,
235+
})}
236+
{deal.category
237+
? `, ${deal.category}`
238+
: ''}
239+
</>
240+
}
241+
/>
242+
<ListItemSecondaryAction>
243+
<Typography
244+
variant="body2"
245+
color="textSecondary"
246+
component="span"
247+
>
248+
last activity{' '}
249+
{formatDistance(deal.updated_at, now)} ago{' '}
250+
</Typography>
251+
</ListItemSecondaryAction>
252+
</ListItemButton>
251253
</ListItem>
252254
))}
253255
</List>

0 commit comments

Comments
 (0)