improvement: start spliting "MessagesList" in multiple components

This commit is contained in:
canove
2020-09-26 18:53:28 -03:00
parent 1b95595db5
commit 14caaf3895
9 changed files with 492 additions and 127 deletions

View File

@@ -0,0 +1,36 @@
import React from "react";
import { makeStyles } from "@material-ui/core/styles";
import { Avatar, Card, CardHeader } from "@material-ui/core";
import Skeleton from "@material-ui/lab/Skeleton";
const useStyles = makeStyles(theme => ({
ticketHeader: {
display: "flex",
backgroundColor: "#eee",
flex: "none",
borderBottom: "1px solid rgba(0, 0, 0, 0.12)",
},
}));
const TicketHeaderSkeleton = () => {
const classes = useStyles();
return (
<Card square className={classes.ticketHeader}>
<CardHeader
titleTypographyProps={{ noWrap: true }}
subheaderTypographyProps={{ noWrap: true }}
avatar={
<Skeleton animation="wave" variant="circle">
<Avatar alt="contact_image" />
</Skeleton>
}
title={<Skeleton animation="wave" width={80} />}
subheader={<Skeleton animation="wave" width={140} />}
/>
</Card>
);
};
export default TicketHeaderSkeleton;