Fix React warning.

master
Tom Hacohen 4 years ago
parent ba89498ee9
commit 3187807842

@ -38,7 +38,7 @@ class Contact extends React.PureComponent {
function getAllType( function getAllType(
propName: string, propName: string,
props: any, props_: any,
valueToHref?: (value: string, type: string) => string, valueToHref?: (value: string, type: string) => string,
primaryTransform?: (value: string, type: string) => string, primaryTransform?: (value: string, type: string) => string,
secondaryTransform?: (value: string, type: string) => string) { secondaryTransform?: (value: string, type: string) => string) {
@ -58,6 +58,8 @@ class Contact extends React.PureComponent {
</IconButton> </IconButton>
); );
const { ref, ...props } = props_;
return ( return (
<ListItem <ListItem
key={idx} key={idx}

Loading…
Cancel
Save