chore: add trailingComma

This commit is contained in:
陈嘉涵
2020-01-19 11:57:09 +08:00
parent e841175fe8
commit 389d68884d
269 changed files with 2706 additions and 2702 deletions
+3 -3
View File
@@ -28,14 +28,14 @@ function Switch(
activeColor,
activeValue,
inactiveColor,
inactiveValue
inactiveValue,
} = props;
const checked = value === activeValue;
const switchStyle = {
fontSize: addUnit(size),
backgroundColor: checked ? activeColor : inactiveColor
backgroundColor: checked ? activeColor : inactiveColor,
};
const loadingColor = checked ? activeColor || BLUE : inactiveColor || '';
@@ -55,7 +55,7 @@ function Switch(
class={bem({
on: checked,
loading,
disabled
disabled,
})}
role="switch"
style={switchStyle}