refactor: user v1 store (#2047)

This commit is contained in:
boojack
2023-07-29 18:57:09 +08:00
committed by GitHub
parent f5793c142c
commit a6a1898c41
17 changed files with 97 additions and 46 deletions

View File

@ -1,3 +1,5 @@
import classNames from "classnames";
interface Props {
avatarUrl?: string;
className?: string;
@ -6,7 +8,7 @@ interface Props {
const UserAvatar = (props: Props) => {
const { avatarUrl, className } = props;
return (
<div className={`${className ?? ""} w-8 h-8 overflow-clip`}>
<div className={classNames(`w-8 h-8 overflow-clip`, className)}>
<img className="w-full h-auto rounded-full min-w-full min-h-full object-cover" src={avatarUrl || "/logo.webp"} alt="" />
</div>
);