mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
added avatar support
This commit is contained in:
@@ -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} />;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user