File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { matchPath } from 'react-router-dom'
2-
2+ import { storageGet , storageSet } from 'common/safeLocalStorage'
33const Dispatcher = require ( '../dispatcher/dispatcher' )
44const BaseStore = require ( './base/_store' )
55const data = require ( '../data/base/_data' )
@@ -348,7 +348,11 @@ const controller = {
348348 store . loaded ( )
349349 } else if ( ! user ) {
350350 store . ephemeral_token = null
351+ const darkMode = storageGet ( 'dark_mode' )
351352 AsyncStorage . clear ( )
353+ if ( darkMode ) {
354+ storageSet ( 'dark_mode' , darkMode )
355+ }
352356 if ( ! data . token ) {
353357 return
354358 }
Original file line number Diff line number Diff line change @@ -351,7 +351,7 @@ const HomePage: React.FC = () => {
351351 { ! isSignup ? (
352352 < >
353353 < Card
354- className = 'mb-3 bg-white p-3'
354+ className = 'mb-3 bg-body p-3'
355355 contentClassName = { classNames (
356356 'd-flex flex-column gap-3' ,
357357 { 'bg-light200' : preventEmailPassword } ,
You can’t perform that action at this time.
0 commit comments