blob: c6dc71ec1c810024281cd85e45c7e276503d5659 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import React from 'react';
import { Link } from 'react-router-dom';
import { UserType } from './Types';
export default function Avatar(props) {
return (
<div className="msg-avatar">
<Link to={{ pathname: `/${props.user.uname}/`}}>
<img src={`//i.juick.com/a/${props.user.uid}.png`} alt={`${props.user.uname}`} />
</Link>
</div>
);
}
Avatar.propTypes = {
user: UserType
}
|