Files
SCM-Manager/scm-ui/src/components/Image.js
Sebastian Sdorra ec158e3d4d fix flow check
2018-08-30 11:40:53 +02:00

19 lines
360 B
JavaScript

//@flow
import React from "react";
import { withContextPath } from "../urls";
type Props = {
src: string,
alt: string,
className?: any
};
class Image extends React.Component<Props> {
render() {
const { src, alt, className } = this.props;
return <img className={className} src={withContextPath(src)} alt={alt} />;
}
}
export default Image;