From 8d76e134e87ba985d72cce60fc8e61076649c63f Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 10 Sep 2019 22:28:01 +0100 Subject: [PATCH] Contact: change the field copy button to use the correct icon. --- src/components/Contact.tsx | 4 ++-- src/icons/Copy.tsx | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 src/icons/Copy.tsx diff --git a/src/components/Contact.tsx b/src/components/Contact.tsx index b133655..462b819 100644 --- a/src/components/Contact.tsx +++ b/src/components/Contact.tsx @@ -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); }} > - + ); diff --git a/src/icons/Copy.tsx b/src/icons/Copy.tsx new file mode 100644 index 0000000..5a2cf92 --- /dev/null +++ b/src/icons/Copy.tsx @@ -0,0 +1,12 @@ +import * as React from 'react'; + +import SvgIcon from '@material-ui/core/SvgIcon'; + +export default function CopyIcon(props: any) { + return ( + + + + ); +} +