+
TWITTER
-
);
}
-const renderUrl = (props, url) => {
+const renderUrl = (copyToClipboard, url) => {
if (url.length === 0) {
return null;
}
@@ -35,7 +42,7 @@ const renderUrl = (props, url) => {
return (
- Copy
+ Copy
);
}
@@ -43,11 +50,11 @@ const renderUrl = (props, url) => {
const ShareAddon = (props) => {
return (
- {renderX(props)}
+ {renderX(props.closeModalDialog)}
Share Add-on
- {renderButtons(props)}
- {renderUrl(props, props.url)}
+ {renderButtons(props.shareInFacebook, props.shareInTwitter, props.shareInGplus)}
+ {renderUrl(props.copyToClipboard, props.url)}
);
@@ -59,7 +66,7 @@ ShareAddon.propTypes = {
shareInFacebook: PropTypes.func,
shareInTwitter: PropTypes.func,
shareInGplus: PropTypes.func,
- copyUrl: PropTypes.func
+ copyToClipboard: PropTypes.func
};
ShareAddon.defaultProps = {
url: ''
diff --git a/src/common/ShareAddon/styles.less b/src/common/ShareAddon/styles.less
index ac239344f..c5d71c83f 100644
--- a/src/common/ShareAddon/styles.less
+++ b/src/common/ShareAddon/styles.less
@@ -9,9 +9,9 @@
display: flex;
justify-content: flex-end;
.x-icon {
- height: 10px;
cursor: pointer;
- fill: @colorneutrallight;
+ background-position: center;
+ background-repeat: no-repeat;
}
}
.info-container {
diff --git a/src/common/Stream/Stream.js b/src/common/Stream/Stream.js
index 07bcce436..57e4be798 100644
--- a/src/common/Stream/Stream.js
+++ b/src/common/Stream/Stream.js
@@ -47,9 +47,9 @@ const renderSubtitle = (isFree, isSubscription, subtitle) => {
return null;
}
-const renderPlay = (props, progress) => {
+const renderPlay = (progress) => {
return (
-
+
);
@@ -69,7 +69,7 @@ const renderProgress = (progress) => {
const Stream = (props) => {
return (
-
+
{renderLogo(props.logo, props.sourceName)}
@@ -80,7 +80,7 @@ const Stream = (props) => {
{renderProgress(props.progress)}
- {renderPlay(props, props.progress)}
+ {renderPlay(props.progress)}
);
}
@@ -93,7 +93,7 @@ Stream.propTypes = {
isFree: PropTypes.bool.isRequired,
isSubscription: PropTypes.bool.isRequired,
progress: PropTypes.number.isRequired,
- playButtonClicked: PropTypes.func
+ play: PropTypes.func
};
Stream.defaultProps = {
diff --git a/src/common/UserPanel/UserPanel.js b/src/common/UserPanel/UserPanel.js
index 7a3f4e62e..503636880 100644
--- a/src/common/UserPanel/UserPanel.js
+++ b/src/common/UserPanel/UserPanel.js
@@ -25,41 +25,41 @@ const renderEmail = (email) => {
);
}
-const renderFullscreen = (props) => {
+const renderFullscreen = (onFullscreenMode) => {
return (
-
+
Fullscreen mode
);
}
-const renderOptions = (props) => {
+const renderOptions = (showSettings, showAddons, playMagnetLink, importFromFB, showHelpCenter) => {
return (
- -
+
-
Settings
- -
+
-
Add-ons
- -
+
-
Play Magnet Link
- -
+
-
Import from Facebook
- -
+
-
Help & Feedback
);
}
-const renderInfo = (props) => {
+const renderFooter = (showTermsOfService, showInfo) => {
return (
-
- - Terms of Service
- - About Stremio
+
+ - Terms of Service
+ - About Stremio
);
}
@@ -74,9 +74,9 @@ const UserPanel = (props) => {
Log out
- {renderFullscreen(props)}
- {renderOptions(props)}
- {renderInfo(props)}
+ {renderFullscreen(props.onFullscreenMode)}
+ {renderOptions(props.showSettings, props.showAddons, props.playMagnetLink, props.importFromFB, props.showHelpCenter)}
+ {renderFooter(props.showTermsOfService, props.showInfo)}
);
}
diff --git a/src/common/UserPanel/styles.less b/src/common/UserPanel/styles.less
index af740e3cf..a5998e88d 100644
--- a/src/common/UserPanel/styles.less
+++ b/src/common/UserPanel/styles.less
@@ -47,10 +47,10 @@
background-color: @coloraccent20;
}
}
- .options, .info {
+ .options, .footer {
padding: 15px 0px;
}
- .info {
+ .footer {
border-top: 1px solid @colorwhite20;
.terms-label, .about-label {
padding: 10px 20px;
diff --git a/src/common/Video/Video.js b/src/common/Video/Video.js
index 7d96386ef..f91254fc9 100644
--- a/src/common/Video/Video.js
+++ b/src/common/Video/Video.js
@@ -58,7 +58,7 @@ const renderReleasedDate = (released) => {
}
return (
-
{released.getDate() + ' ' + months[released.getMonth() - 1]}
+
{released.getDate() + ' ' + months[released.getMonth()]}
);
}