fix: warning of memory leak in cotact modal

This commit is contained in:
canove
2020-10-17 13:14:00 -03:00
parent a523e244f8
commit 68c43a5020
3 changed files with 32 additions and 23 deletions

View File

@@ -2,6 +2,7 @@ import React from "react";
import Skeleton from "@material-ui/lab/Skeleton";
import Typography from "@material-ui/core/Typography";
import Paper from "@material-ui/core/Paper";
import { i18n } from "../../translate/i18n";
const ContactDrawerSkeleton = ({ classes }) => {
return (
@@ -19,7 +20,9 @@ const ContactDrawerSkeleton = ({ classes }) => {
<Skeleton animation="wave" height={25} width={80} />
</Paper>
<Paper square className={classes.contactDetails}>
<Typography variant="subtitle1">Outras informações</Typography>
<Typography variant="subtitle1">
{i18n.t("contactDrawer.extraInfo")}
</Typography>
<Paper square variant="outlined" className={classes.contactExtraInfo}>
<Skeleton animation="wave" height={20} width={60} />
<Skeleton animation="wave" height={20} width={160} />