fix: fix background color of button

This commit is contained in:
Satyajit Sahoo
2016-11-12 23:52:24 +05:30
parent ec0d69effa
commit 94d18cccef

View File

@@ -118,7 +118,11 @@ class Button extends Component<DefaultProps, Props, State> {
if (buttonColor) {
backgroundColor = buttonColor;
} else {
backgroundColor = primary ? colors.primary : white;
if (primary) {
backgroundColor = colors.primary;
} else {
backgroundColor = dark ? black : white;
}
}
}
} else {