@@ -137,6 +132,9 @@ function HomePage(props: Props) {
{rowData.map(({ title, route, link, icon, help, options = {} }, index) => {
return getRowElements(title, route, link, icon, help, options, index);
})}
+ {/* @if TARGET='web' */}
+
+ {/* @endif */}
);
}
diff --git a/ui/page/settingsAdvanced/index.js b/ui/page/settingsAdvanced/index.js
index c42fac57f..1997160cf 100644
--- a/ui/page/settingsAdvanced/index.js
+++ b/ui/page/settingsAdvanced/index.js
@@ -17,10 +17,10 @@ import {
selectFindingFFmpeg,
} from 'redux/selectors/settings';
import { doWalletStatus, selectWalletIsEncrypted, SETTINGS } from 'lbry-redux';
-import SettingsAdvancedPage from './view';
+import SettingsPage from './view';
import { selectUserVerifiedEmail } from 'redux/selectors/user';
-const select = (state) => ({
+const select = state => ({
daemonSettings: selectDaemonSettings(state),
allowAnalytics: selectAllowAnalytics(state),
isAuthenticated: selectUserVerifiedEmail(state),
@@ -34,18 +34,18 @@ const select = (state) => ({
syncEnabled: makeSelectClientSetting(SETTINGS.ENABLE_SYNC)(state),
});
-const perform = (dispatch) => ({
+const perform = dispatch => ({
setDaemonSetting: (key, value) => dispatch(doSetDaemonSetting(key, value)),
- clearDaemonSetting: (key) => dispatch(doClearDaemonSetting(key)),
+ clearDaemonSetting: key => dispatch(doClearDaemonSetting(key)),
clearCache: () => dispatch(doClearCache()),
setClientSetting: (key, value) => dispatch(doSetClientSetting(key, value)),
encryptWallet: () => dispatch(doNotifyEncryptWallet()),
decryptWallet: () => dispatch(doNotifyDecryptWallet()),
updateWalletStatus: () => dispatch(doWalletStatus()),
- confirmForgetPassword: (modalProps) => dispatch(doNotifyForgetPassword(modalProps)),
+ confirmForgetPassword: modalProps => dispatch(doNotifyForgetPassword(modalProps)),
findFFmpeg: () => dispatch(doFindFFmpeg()),
enterSettings: () => dispatch(doEnterSettingsPage()),
exitSettings: () => dispatch(doExitSettingsPage()),
});
-export default connect(select, perform)(SettingsAdvancedPage);
+export default connect(select, perform)(SettingsPage);
diff --git a/ui/page/settingsAdvanced/view.jsx b/ui/page/settingsAdvanced/view.jsx
index 4850d35f0..ef283f32a 100644
--- a/ui/page/settingsAdvanced/view.jsx
+++ b/ui/page/settingsAdvanced/view.jsx
@@ -38,7 +38,7 @@ type DaemonSettings = {
type Props = {
setDaemonSetting: (string, ?SetDaemonSettingArg) => void,
- clearDaemonSetting: (string) => void,
+ clearDaemonSetting: string => void,
setClientSetting: (string, SetDaemonSettingArg) => void,
daemonSettings: DaemonSettings,
isAuthenticated: boolean,
@@ -64,7 +64,7 @@ type State = {
storedPassword: boolean,
};
-class SettingsAdvancedPage extends React.PureComponent
{
+class SettingsPage extends React.PureComponent {
constructor(props: Props) {
super(props);
@@ -98,7 +98,7 @@ class SettingsAdvancedPage extends React.PureComponent {
if (isAuthenticated || !IS_WEB) {
this.props.updateWalletStatus();
- getPasswordFromCookie().then((p) => {
+ getPasswordFromCookie().then(p => {
if (typeof p === 'string') {
this.setState({ storedPassword: true });
}
@@ -493,7 +493,7 @@ class SettingsAdvancedPage extends React.PureComponent {
onChange={this.onMaxConnectionsChange}
value={daemonSettings.max_connections_per_download}
>
- {connectionOptions.map((connectionOption) => (
+ {connectionOptions.map(connectionOption => (
@@ -521,4 +521,4 @@ class SettingsAdvancedPage extends React.PureComponent {
}
}
-export default SettingsAdvancedPage;
+export default SettingsPage;
diff --git a/ui/page/settingsNotifications/index.js b/ui/page/settingsNotifications/index.js
index 5fd5a5e25..b06b0cb73 100644
--- a/ui/page/settingsNotifications/index.js
+++ b/ui/page/settingsNotifications/index.js
@@ -2,15 +2,15 @@ import { connect } from 'react-redux';
import { doSetClientSetting } from 'redux/actions/settings';
import { selectosNotificationsEnabled } from 'redux/selectors/settings';
import { selectUserVerifiedEmail } from 'redux/selectors/user';
-import NotificationSettingsPage from './view';
+import SettingsPage from './view';
-const select = (state) => ({
+const select = state => ({
osNotificationsEnabled: selectosNotificationsEnabled(state),
isAuthenticated: Boolean(selectUserVerifiedEmail(state)),
});
-const perform = (dispatch) => ({
+const perform = dispatch => ({
setClientSetting: (key, value) => dispatch(doSetClientSetting(key, value)),
});
-export default connect(select, perform)(NotificationSettingsPage);
+export default connect(select, perform)(SettingsPage);
diff --git a/ui/page/settingsStripeCard/index.js b/ui/page/settingsStripeCard/index.js
index 1741b6ff2..c74607b04 100644
--- a/ui/page/settingsStripeCard/index.js
+++ b/ui/page/settingsStripeCard/index.js
@@ -3,16 +3,16 @@ import { doSetClientSetting } from 'redux/actions/settings';
import { selectosNotificationsEnabled } from 'redux/selectors/settings';
import { selectUserVerifiedEmail, selectUserEmail } from 'redux/selectors/user';
-import SettingsStripeCard from './view';
+import SettingsPage from './view';
-const select = (state) => ({
+const select = state => ({
osNotificationsEnabled: selectosNotificationsEnabled(state),
isAuthenticated: Boolean(selectUserVerifiedEmail(state)),
email: selectUserEmail(state),
});
-const perform = (dispatch) => ({
+const perform = dispatch => ({
setClientSetting: (key, value) => dispatch(doSetClientSetting(key, value)),
});
-export default connect(select, perform)(SettingsStripeCard);
+export default connect(select, perform)(SettingsPage);
diff --git a/ui/page/settingsStripeCard/view.jsx b/ui/page/settingsStripeCard/view.jsx
index ae9eb5bb9..7f58a0bcd 100644
--- a/ui/page/settingsStripeCard/view.jsx
+++ b/ui/page/settingsStripeCard/view.jsx
@@ -35,7 +35,7 @@ if (STRIPE_PUBLIC_KEY.indexOf('pk_live') > -1) {
// scriptFailedToLoad: boolean,
// };
-class SettingsStripeCard extends React.Component {
+class CardVerify extends React.Component {
constructor(props) {
// :Props
super(props);
@@ -472,6 +472,6 @@ class SettingsStripeCard extends React.Component {
}
}
-export default SettingsStripeCard;
+export default CardVerify;
/* eslint-enable no-undef */
/* eslint-enable react/prop-types */
diff --git a/ui/page/signInVerify/view.jsx b/ui/page/signInVerify/view.jsx
index 8abb8495b..39964e677 100644
--- a/ui/page/signInVerify/view.jsx
+++ b/ui/page/signInVerify/view.jsx
@@ -8,9 +8,11 @@ import Button from 'component/button';
import { Lbryio } from 'lbryinc';
import I18nMessage from 'component/i18nMessage';
import Card from 'component/common/card';
-
+// @if TARGET='web'
+import Pixel from 'web/component/pixel';
+// @endif
type Props = {
- history: { push: string => void, location: { search: string } },
+ history: { push: (string) => void, location: { search: string } },
doToast: ({}) => void,
};
@@ -132,6 +134,9 @@ function SignInVerifyPage(props: Props) {
}
/>
+ {/* @if TARGET='web' */}
+