File tree Expand file tree Collapse file tree 1 file changed +34
-32
lines changed
examples/crm/src/companies Expand file tree Collapse file tree 1 file changed +34
-32
lines changed Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments