From 3187807842000ac4b4d073aaf41254b9eec25956 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sat, 8 Aug 2020 12:02:12 +0300 Subject: [PATCH] Fix React warning. --- src/Contacts/Contact.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Contacts/Contact.tsx b/src/Contacts/Contact.tsx index 15cb39e..56d77eb 100644 --- a/src/Contacts/Contact.tsx +++ b/src/Contacts/Contact.tsx @@ -38,7 +38,7 @@ class Contact extends React.PureComponent { function getAllType( propName: string, - props: any, + props_: any, valueToHref?: (value: string, type: string) => string, primaryTransform?: (value: string, type: string) => string, secondaryTransform?: (value: string, type: string) => string) { @@ -58,6 +58,8 @@ class Contact extends React.PureComponent { ); + const { ref, ...props } = props_; + return (