Revert "Add CPS video"

This reverts commit ec97646bf7430e874b0045a61a5f9d39d4c862de.
This commit is contained in:
seotts 2020-10-21 14:58:20 -04:00 committed by Karishma Chadha
parent be49e209bb
commit 551eea91b5
3 changed files with 2 additions and 14 deletions

View file

@ -30,7 +30,6 @@ class VideoPreview extends React.Component {
<Video <Video
className="video" className="video"
height={this.props.videoHeight} height={this.props.videoHeight}
isYouTube={this.props.isYouTube}
videoId={this.props.videoId} videoId={this.props.videoId}
width={this.props.videoWidth} width={this.props.videoWidth}
/> />
@ -61,13 +60,8 @@ class VideoPreview extends React.Component {
} }
} }
VideoPreview.defaultProps = {
isYouTube: false
};
VideoPreview.propTypes = { VideoPreview.propTypes = {
buttonMessage: PropTypes.string.isRequired, buttonMessage: PropTypes.string.isRequired,
isYouTube: PropTypes.bool,
thumbnail: PropTypes.string.isRequired, thumbnail: PropTypes.string.isRequired,
thumbnailHeight: PropTypes.string, thumbnailHeight: PropTypes.string,
thumbnailWidth: PropTypes.string, thumbnailWidth: PropTypes.string,

View file

@ -1534,14 +1534,13 @@ class AnnualReport extends React.Component {
{/* eslint-disable max-len */} {/* eslint-disable max-len */}
<MediaQuery minWidth={frameless.tabletPortrait}> <MediaQuery minWidth={frameless.tabletPortrait}>
<VideoPreview <VideoPreview
isYouTube
buttonMessage={ buttonMessage={
this.props.intl.formatMessage({id: 'annualReport.watchVideo'}) this.props.intl.formatMessage({id: 'annualReport.watchVideo'})
} }
thumbnail="/images/annual-report/initiatives/schools/CPS Story/CPS Video Thumbnail.png" thumbnail="/images/annual-report/initiatives/schools/CPS Story/CPS Video Thumbnail.png"
thumbnailWidth="580" thumbnailWidth="580"
videoHeight="320" videoHeight="320"
videoId="9QD9IxOinLg" videoId="joal01i8b1"
videoWidth="568" videoWidth="568"
/> />
</MediaQuery> </MediaQuery>
@ -1550,14 +1549,13 @@ class AnnualReport extends React.Component {
minWidth={frameless.mobile} minWidth={frameless.mobile}
> >
<VideoPreview <VideoPreview
isYouTube
buttonMessage={ buttonMessage={
this.props.intl.formatMessage({id: 'annualReport.watchVideo'}) this.props.intl.formatMessage({id: 'annualReport.watchVideo'})
} }
thumbnail="/images/annual-report/initiatives/schools/CPS Story/CPS Video Thumbnail.png" thumbnail="/images/annual-report/initiatives/schools/CPS Story/CPS Video Thumbnail.png"
thumbnailWidth="400" thumbnailWidth="400"
videoHeight="216" videoHeight="216"
videoId="9QD9IxOinLg" videoId="joal01i8b1"
videoWidth="380" videoWidth="380"
/> />
</MediaQuery> </MediaQuery>

View file

@ -1864,10 +1864,6 @@ p {
&.cps { &.cps {
background-image: url("/images/annual-report/initiatives/schools/CPS Story/CPS Video Splash.svg"); background-image: url("/images/annual-report/initiatives/schools/CPS Story/CPS Video Splash.svg");
.button {
background-color: $ui-purple;
}
} }
} }
} }