Remove unnecessary select()
This commit is contained in:
@@ -221,11 +221,7 @@ export const Button = React.forwardRef<View, ButtonProps>(
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
baseStyles.push({
|
baseStyles.push({
|
||||||
backgroundColor: select(t.name, {
|
backgroundColor: t.palette.primary_200,
|
||||||
light: t.palette.primary_200,
|
|
||||||
dim: t.palette.primary_200,
|
|
||||||
dark: t.palette.primary_200,
|
|
||||||
}),
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else if (color === 'secondary') {
|
} else if (color === 'secondary') {
|
||||||
@@ -258,11 +254,7 @@ export const Button = React.forwardRef<View, ButtonProps>(
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
baseStyles.push({
|
baseStyles.push({
|
||||||
backgroundColor: select(t.name, {
|
backgroundColor: t.palette.negative_700,
|
||||||
light: t.palette.negative_700,
|
|
||||||
dim: t.palette.negative_700,
|
|
||||||
dark: t.palette.negative_700,
|
|
||||||
}),
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else if (color === 'negative_subtle') {
|
} else if (color === 'negative_subtle') {
|
||||||
|
|||||||
Reference in New Issue
Block a user