remove doGetThemes
This commit is contained in:
parent
feca7fb620
commit
18701e0382
5 changed files with 3 additions and 25 deletions
|
@ -71,12 +71,6 @@ const Header = (props: Props) => {
|
|||
icon={ICONS.LBRY}
|
||||
navigate="/"
|
||||
/>
|
||||
<Button
|
||||
className="header__navigation-item header__navigation-item--lbry"
|
||||
label={__('auth')}
|
||||
icon={ICONS.LBRY}
|
||||
navigate="/$/signin"
|
||||
/>
|
||||
|
||||
{/* @if TARGET='app' */}
|
||||
{!minimal && (
|
||||
|
|
|
@ -1,13 +1,7 @@
|
|||
import { connect } from 'react-redux';
|
||||
import * as SETTINGS from 'constants/settings';
|
||||
import { doClearCache, doNotifyEncryptWallet, doNotifyDecryptWallet, doNotifyForgetPassword } from 'redux/actions/app';
|
||||
import {
|
||||
doSetDaemonSetting,
|
||||
doSetClientSetting,
|
||||
doGetThemes,
|
||||
doChangeLanguage,
|
||||
doSetDarkTime,
|
||||
} from 'redux/actions/settings';
|
||||
import { doSetDaemonSetting, doSetClientSetting, doSetDarkTime } from 'redux/actions/settings';
|
||||
import { doSetPlayingUri } from 'redux/actions/content';
|
||||
import { makeSelectClientSetting, selectDaemonSettings, selectosNotificationsEnabled } from 'redux/selectors/settings';
|
||||
import { doWalletStatus, selectWalletIsEncrypted, selectBlockedChannelsCount } from 'lbry-redux';
|
||||
|
@ -36,7 +30,6 @@ const perform = dispatch => ({
|
|||
setDaemonSetting: (key, value) => dispatch(doSetDaemonSetting(key, value)),
|
||||
clearCache: () => dispatch(doClearCache()),
|
||||
setClientSetting: (key, value) => dispatch(doSetClientSetting(key, value)),
|
||||
getThemes: () => dispatch(doGetThemes()),
|
||||
encryptWallet: () => dispatch(doNotifyEncryptWallet()),
|
||||
decryptWallet: () => dispatch(doNotifyDecryptWallet()),
|
||||
updateWalletStatus: () => dispatch(doWalletStatus()),
|
||||
|
|
|
@ -44,7 +44,6 @@ type Props = {
|
|||
setDaemonSetting: (string, ?SetDaemonSettingArg) => void,
|
||||
setClientSetting: (string, SetDaemonSettingArg) => void,
|
||||
clearCache: () => Promise<any>,
|
||||
getThemes: () => void,
|
||||
daemonSettings: DaemonSettings,
|
||||
showNsfw: boolean,
|
||||
instantPurchaseEnabled: boolean,
|
||||
|
@ -95,7 +94,6 @@ class SettingsPage extends React.PureComponent<Props, State> {
|
|||
}
|
||||
|
||||
componentDidMount() {
|
||||
this.props.getThemes();
|
||||
this.props.updateWalletStatus();
|
||||
getSavedPassword().then(p => {
|
||||
if (p) {
|
||||
|
|
|
@ -46,13 +46,6 @@ export function doSetClientSetting(key, value) {
|
|||
};
|
||||
}
|
||||
|
||||
export function doGetThemes() {
|
||||
return dispatch => {
|
||||
const themes = [__('light'), __('dark')];
|
||||
dispatch(doSetClientSetting(SETTINGS.THEMES, themes));
|
||||
};
|
||||
}
|
||||
|
||||
export function doUpdateIsNight() {
|
||||
return {
|
||||
type: ACTIONS.UPDATE_IS_NIGHT,
|
||||
|
|
|
@ -16,8 +16,8 @@ const defaultState = {
|
|||
|
||||
// UI
|
||||
[SETTINGS.LANGUAGE]: window.localStorage.getItem(SETTINGS.LANGUAGE) || 'en',
|
||||
[SETTINGS.THEME]: 'light',
|
||||
[SETTINGS.THEMES]: [],
|
||||
[SETTINGS.THEME]: __('light'),
|
||||
[SETTINGS.THEMES]: [__('light'), __('dark')],
|
||||
[SETTINGS.SUPPORT_OPTION]: false,
|
||||
[SETTINGS.HIDE_SPLASH_ANIMATION]: false,
|
||||
[SETTINGS.HIDE_BALANCE]: false,
|
||||
|
|
Loading…
Add table
Reference in a new issue