fix: fixed imports & func's name (#182)

This commit is contained in:
Priscila Oliveira
2019-10-12 08:45:39 +02:00
committed by Juan Picado @jotadeveloper
parent 752e2b963d
commit 3888736e45
9 changed files with 14 additions and 10 deletions

View File

@@ -2,7 +2,7 @@ import React, { forwardRef } from 'react';
import { default as MaterialUIAvatar, AvatarProps } from '@material-ui/core/Avatar';
// The default element type of MUI's Avatar is 'div' and we don't allow the change of this prop
type AvatarRef = HTMLElementTagNameMap['div'];
type AvatarRef = HTMLDivElement;
const Avatar = forwardRef<AvatarRef, AvatarProps>(function Avatar(props, ref) {
return <MaterialUIAvatar {...props} ref={ref} />;