minor vidual correction
This commit is contained in:
@@ -23,7 +23,7 @@ export default class InlineVideo extends React.PureComponent {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
const duration = secondsToTime(this.props['data-duration'] / 1000);
|
const duration = secondsToTime(this.props['data-duration'] / 1000);
|
||||||
const className = 'inline-video' + (this.props.onClick ? ' clickable' : '');
|
const className = 'inline-video' + (this.props.onClick ? ' image-clickable' : '');
|
||||||
return (
|
return (
|
||||||
<div className={className}>
|
<div className={className}>
|
||||||
{React.createElement('img', this.props)}
|
{React.createElement('img', this.props)}
|
||||||
|
|||||||
+1
-2
@@ -13758,7 +13758,6 @@ class InlineVideo extends (react__WEBPACK_IMPORTED_MODULE_0___default().PureComp
|
|||||||
super(props);
|
super(props);
|
||||||
this.videoRef = react__WEBPACK_IMPORTED_MODULE_0___default().createRef();
|
this.videoRef = react__WEBPACK_IMPORTED_MODULE_0___default().createRef();
|
||||||
this.handleClick = this.handleClick.bind(this);
|
this.handleClick = this.handleClick.bind(this);
|
||||||
console.log(props);
|
|
||||||
}
|
}
|
||||||
handleClick(e) {
|
handleClick(e) {
|
||||||
if (this.props.onClick) {
|
if (this.props.onClick) {
|
||||||
@@ -13767,7 +13766,7 @@ class InlineVideo extends (react__WEBPACK_IMPORTED_MODULE_0___default().PureComp
|
|||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
const duration = (0,_lib_strformat_js__WEBPACK_IMPORTED_MODULE_1__.secondsToTime)(this.props['data-duration'] / 1000);
|
const duration = (0,_lib_strformat_js__WEBPACK_IMPORTED_MODULE_1__.secondsToTime)(this.props['data-duration'] / 1000);
|
||||||
const className = 'inline-video' + (this.props.onClick ? ' clickable' : '');
|
const className = 'inline-video' + (this.props.onClick ? ' image-clickable' : '');
|
||||||
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
||||||
className: className
|
className: className
|
||||||
}, react__WEBPACK_IMPORTED_MODULE_0___default().createElement('img', this.props), this.props.onClick ? react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
}, react__WEBPACK_IMPORTED_MODULE_0___default().createElement('img', this.props), this.props.onClick ? react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user