Fix background shapes for dark mode

This commit is contained in:
Alex Gleason 2022-03-30 12:08:02 -05:00
parent beeec8ba06
commit c62cd9898a
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 3 additions and 3 deletions

View file

@ -150,12 +150,12 @@ const normalizeColors = (soapboxConfig: SoapboxConfigMap): SoapboxConfigMap => {
const maybeAddMissingColors = (soapboxConfig: SoapboxConfigMap): SoapboxConfigMap => {
const colors = soapboxConfig.get('colors');
const missing = {
const missing = ImmutableMap({
'bg-shape-1': colors.getIn(['accent', '50']),
'bg-shape-2': colors.getIn(['primary', '500']),
};
});
return soapboxConfig.set('colors', colors.mergeDeep(missing));
return soapboxConfig.set('colors', missing.mergeDeep(colors));
};
export const normalizeSoapboxConfig = (soapboxConfig: Record<string, any>) => {