Adapt components with API response
This commit is contained in:
@@ -49,7 +49,7 @@ export default function DiferansDialog({difference}) {
|
||||
<DialogTitle>Liste des modifications</DialogTitle>
|
||||
<List sx={{width: '100%', maxWidth: 360, bgcolor: 'background.paper'}}>
|
||||
{difference.map(({id, admin_user, date, jsonDiff}) => {
|
||||
const {firstname} = admin_user.data.attributes
|
||||
const {firstname} = admin_user
|
||||
const diferansDate = format(new Date(date), 'PPPppp', {locale: fr})
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user