bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/whiteboard/slide/component.jsx

27 lines
676 B
React
Raw Normal View History

import React, { PropTypes } from 'react';
export default class Slide extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
2016-05-21 02:36:20 +08:00
<g>
{this.props.current_slide ?
<image x="0" y="0"
width="1134" height="850.7076923076924"
preserveAspectRatio="none"
xlink="http://www.w3.org/1999/xlink"
2016-05-21 02:36:20 +08:00
xlinkHref={this.props.current_slide.slide.img_uri}
style={{ WebkitTapHighlightColor: 'transparent' }} //need to figure why we need this
2016-05-21 02:36:20 +08:00
stroke-width="0.8">
</image>
: null
2016-05-21 02:36:20 +08:00
}
</g>
);
}
}