Set Azure as default brandColor (can still be set blank with null)

stable/1.0.x
Alex Gleason 2020-06-03 11:23:21 -05:00
rodzic 6116b56676
commit 7d58694cce
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -1,12 +1,14 @@
import { SOAPBOX_CONFIG_IMPORT } from '../actions/soapbox';
import { Map as ImmutableMap, fromJS } from 'immutable';
const initialState = ImmutableMap();
const initialState = ImmutableMap({
brandColor: '#0482d8', // Azure
});
export default function soapbox(state = initialState, action) {
switch(action.type) {
case SOAPBOX_CONFIG_IMPORT:
return ImmutableMap(fromJS(action.soapboxConfig));
return initialState.merge(ImmutableMap(fromJS(action.soapboxConfig)));
default:
return state;
}