Skip to content

Commit

Permalink
Changing color to hex code, making action order consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
andycwilliams committed Nov 14, 2024
1 parent 82a0ecd commit ef5ac78
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 22 deletions.
12 changes: 6 additions & 6 deletions src/components/Contacts/ContactListTableDesktop.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,6 @@ const ContactListTableDesktop = ({
},
{
field: 'webId',
headerName: 'Web ID',
minWidth: 150,
flex: 1,
headerAlign: 'center',
align: 'center',
renderCell: (contact) => (
<Typography
noWrap
Expand All @@ -87,7 +82,12 @@ const ContactListTableDesktop = ({
>
{contact.id}
</Typography>
)
),
headerName: 'Web ID',
minWidth: 150,
flex: 1,
headerAlign: 'center',
align: 'center'
},
{
field: 'Profile',
Expand Down
27 changes: 12 additions & 15 deletions src/components/Contacts/ContactListTableMobile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,18 @@ const ContactListTableMobile = ({
'aria-labelledby': 'actions-icon-button'
}}
>
<MenuItem
component={Button}
onClick={handleMenuItemClick(
() =>
saveToClipboard(contact.webId, 'webId copied to clipboard', addNotification),
contact
)}
startIcon={<ContentCopyIcon sx={iconSize} />}
sx={iconStyling}
>
Copy WebId
</MenuItem>
<MenuItem
component={Button}
onClick={handleMenuItemClick(handleProfileClick, contact)}
Expand All @@ -209,21 +221,6 @@ const ContactListTableMobile = ({
>
Message
</MenuItem>
{/* TODO: Keep copy function? */}
{/* If so, also add to Desktop table? */}
{/* Maybe without any icon. Simply click on the web ID and it will copy? */}
<MenuItem
component={Button}
onClick={handleMenuItemClick(
() =>
saveToClipboard(contact.webId, 'webId copied to clipboard', addNotification),
contact
)}
startIcon={<ContentCopyIcon sx={iconSize} />}
sx={iconStyling}
>
Copy WebId
</MenuItem>
<MenuItem
component={Button}
onClick={handleMenuItemClick(editContact, contact)}
Expand Down
1 change: 0 additions & 1 deletion src/pages/Contacts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ const Contacts = () => {
}}
IconComponent={KeyboardArrowDownIcon}
>
{' '}
<MenuItem value="Sort by:" disabled>
Sort by:
</MenuItem>
Expand Down

0 comments on commit ef5ac78

Please sign in to comment.