Skip to content

Commit

Permalink
feat(ListItemContact): Add action menu header
Browse files Browse the repository at this point in the history
  • Loading branch information
JF-Cozy committed Mar 23, 2023
1 parent 9164e87 commit 633ecf8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions react/MuiCozyTheme/ListItem/ListItemContact/index.jsx
@@ -1,6 +1,7 @@
import React from 'react'
import PropTypes from 'prop-types'

import Filename from '../../../Filename'
import Icon from '../../../Icon'
import ContactsIcon from '../../../Icons/Contacts'
import ListItemBase from '../ListItemBase'
Expand Down Expand Up @@ -36,6 +37,9 @@ const ListItemContact = ({
secondary={secondaryText}
icon={itemIcon}
actions={itemActions}
actionMenuComp={{
Header: <Filename icon={ContactsIcon} filename={primaryText} />
}}
selectProps={selectProps}
expandedAttributesProps={{
isExpandedAttributesActive,
Expand Down

0 comments on commit 633ecf8

Please sign in to comment.