refactor!: use object instead of positional arg
This commit is contained in:
parent
109dec1681
commit
dbcac5035a
2 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ function toRgba(color) {
|
|||
export default function withAlphaVariable({ color, property, variable }) {
|
||||
if (_.isFunction(color)) {
|
||||
return {
|
||||
[property]: color(variable),
|
||||
[property]: color({ opacityVariable: variable }),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue