Chunking
This commit is contained in:
@@ -15,14 +15,7 @@ const Post: FC<Props> = ({ post }) => {
|
||||
<CardHeader
|
||||
avatar={
|
||||
'id' in post.user ? (
|
||||
<MUILink
|
||||
component={Link}
|
||||
to="/profile/$id"
|
||||
params={{ id: post.user.id }}
|
||||
color="#FFF"
|
||||
variant="h6"
|
||||
underline="none"
|
||||
>
|
||||
<MUILink component={Link} to="/profile/$id" params={{ id: post.user.id }} underline="none">
|
||||
<Avatar alt={post.user.username} src={`storage/${post.user.image}`} />
|
||||
</MUILink>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user