Linting and formatting.
This commit is contained in:
parent
5a62fabd1c
commit
be11c37a59
|
@ -39,7 +39,7 @@ export const AudioPlayerWithEncryptedFile = (props: {
|
|||
if (
|
||||
window.inboxStore?.getState().userConfig.audioAutoplay === true &&
|
||||
props.playNextMessage &&
|
||||
props.playableMessageIndex !== undefined
|
||||
props.playableMessageIndex !== undefined
|
||||
) {
|
||||
props.playNextMessage(props.playableMessageIndex);
|
||||
}
|
||||
|
|
|
@ -19,6 +19,7 @@ import { makeLookup } from '../../util';
|
|||
import { LeftPane } from '../LeftPane';
|
||||
import { SessionMainPanel } from '../SessionMainPanel';
|
||||
|
||||
// tslint:disable-next-line: no-submodule-imports
|
||||
import { PersistGate } from 'redux-persist/integration/react';
|
||||
import { persistStore } from 'redux-persist';
|
||||
|
||||
|
@ -57,12 +58,11 @@ export class SessionInboxView extends React.Component<any, State> {
|
|||
return <></>;
|
||||
}
|
||||
|
||||
let persistor = persistStore(this.store);
|
||||
const persistor = persistStore(this.store);
|
||||
|
||||
return (
|
||||
<Provider store={this.store}>
|
||||
<PersistGate loading={null} persistor={persistor}>
|
||||
|
||||
<div className="gutter">
|
||||
<div className="network-status-container" />
|
||||
{this.renderLeftPane()}
|
||||
|
|
|
@ -363,7 +363,7 @@ class SettingsViewInner extends React.Component<SettingsViewProps, State> {
|
|||
window.inboxStore?.dispatch(toggleAudioAutoplay());
|
||||
},
|
||||
content: {
|
||||
defaultValue: window.inboxStore?.getState().userConfig.audioAutoplay
|
||||
defaultValue: window.inboxStore?.getState().userConfig.audioAutoplay,
|
||||
},
|
||||
comparisonValue: undefined,
|
||||
onClick: undefined,
|
||||
|
|
|
@ -2,7 +2,9 @@ import promise from 'redux-promise-middleware';
|
|||
import { createLogger } from 'redux-logger';
|
||||
import { configureStore } from '@reduxjs/toolkit';
|
||||
import { reducer as allReducers } from './reducer';
|
||||
import { persistReducer } from "redux-persist";
|
||||
import { persistReducer } from 'redux-persist';
|
||||
|
||||
// tslint:disable-next-line: no-submodule-imports match-default-export-name
|
||||
import storage from 'redux-persist/lib/storage';
|
||||
|
||||
// @ts-ignore
|
||||
|
@ -27,8 +29,8 @@ const logger = createLogger({
|
|||
const persistConfig = {
|
||||
key: 'root',
|
||||
storage,
|
||||
whitelist: ['userConfig']
|
||||
}
|
||||
whitelist: ['userConfig'],
|
||||
};
|
||||
|
||||
const persistedReducer = persistReducer(persistConfig, allReducers);
|
||||
|
||||
|
|
Loading…
Reference in New Issue