added avatar support

This commit is contained in:
Sebastian Sdorra
2020-06-09 14:11:15 +02:00
parent d61a60e1cd
commit 9174b89e8f
3 changed files with 164 additions and 82 deletions

View File

@@ -27,6 +27,7 @@ import { withContextPath } from "./urls";
type Props = {
src: string;
alt: string;
title?: string;
className?: string;
};
@@ -40,8 +41,8 @@ class Image extends React.Component<Props> {
};
render() {
const { alt, className } = this.props;
return <img className={className} src={this.createImageSrc()} alt={alt} />;
const { alt, title, className } = this.props;
return <img className={className} src={this.createImageSrc()} alt={alt} title={title} />;
}
}