two more pure components

This commit is contained in:
Jeremy Kauffman 2017-06-08 19:41:44 -04:00
parent 418394446d
commit 69bf1bdfea
2 changed files with 2 additions and 2 deletions

View file

@ -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();

View file

@ -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;