Use the volume slider if no balance exists

This commit is contained in:
Jordan Eldredge 2018-06-27 22:30:09 -07:00
parent 9a9231c458
commit 62e6db2939

View file

@ -77,6 +77,12 @@ class ClipPaths extends React.Component {
}
}
const FALLBACKS = {
MAIN_BALANCE_BACKGROUND: "MAIN_VOLUME_BACKGROUND",
MAIN_BALANCE_THUMB: "MAIN_VOLUME_THUMB",
MAIN_BALANCE_THUMB_ACTIVE: "MAIN_VOLUME_THUMB_SELECTED"
};
const Skin = props => {
const { skinImages, skinCursors, skinGenLetterWidths } = props;
if (!skinImages || !skinCursors) {
@ -84,7 +90,7 @@ const Skin = props => {
}
const cssRules = [];
Object.keys(imageSelectors).forEach(imageName => {
const imageUrl = skinImages[imageName];
const imageUrl = skinImages[imageName] || skinImages[FALLBACKS[imageName]];
if (imageUrl) {
imageSelectors[imageName].forEach(selector => {
cssRules.push(