Contact: change the field copy button to use the correct icon.

master
Tom Hacohen 5 years ago
parent 6d45c31f98
commit 8d76e134e8

@ -7,7 +7,7 @@ import IconDate from '@material-ui/icons/DateRange';
import CommunicationCall from '@material-ui/icons/Call';
import CommunicationChatBubble from '@material-ui/icons/ChatBubble';
import CommunicationEmail from '@material-ui/icons/Email';
import AssignmentIcon from '@material-ui/icons/Assignment';
import CopyIcon from '../icons/Copy';
import PimItemHeader from './PimItemHeader';
@ -51,7 +51,7 @@ class Contact extends React.PureComponent {
(window as any).navigator.clipboard.writeText(primaryText);
}}
>
<AssignmentIcon />
<CopyIcon />
</IconButton>
);

@ -0,0 +1,12 @@
import * as React from 'react';
import SvgIcon from '@material-ui/core/SvgIcon';
export default function CopyIcon(props: any) {
return (
<SvgIcon {...props}>
<path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z" />
</SvgIcon>
);
}
Loading…
Cancel
Save