mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 18:35:09 +01:00
Still working on image preview
This commit is contained in:
parent
13caad7794
commit
ff6855970e
@ -15,7 +15,11 @@ import InjectInHeadMixin from '../../mixins/inject_in_head_mixin';
|
|||||||
|
|
||||||
let Image = React.createClass({
|
let Image = React.createClass({
|
||||||
render() {
|
render() {
|
||||||
return (<img src={this.props.preview} />);
|
return (
|
||||||
|
<a href={this.props.url} target="_blank" >
|
||||||
|
<img src={this.props.preview} />
|
||||||
|
</a>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user