two more pure components
This commit is contained in:
parent
418394446d
commit
69bf1bdfea
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ import FilePrice from "component/filePrice";
|
|||
import Link from "component/link";
|
||||
import Modal from "component/modal";
|
||||
|
||||
class VideoPlayButton extends React.Component {
|
||||
class VideoPlayButton extends React.PureComponent {
|
||||
onPurchaseConfirmed() {
|
||||
this.props.closeModal();
|
||||
this.props.startPlaying();
|
||||
|
|
|
@ -3,7 +3,7 @@ import { Thumbnail } from "component/common";
|
|||
import player from "render-media";
|
||||
import fs from "fs";
|
||||
|
||||
class VideoPlayer extends React.Component {
|
||||
class VideoPlayer extends React.PureComponent {
|
||||
componentDidMount() {
|
||||
const elem = this.refs.media;
|
||||
const { downloadPath, filename } = this.props;
|
||||
|
|
Loading…
Reference in a new issue