mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
DRY: light theme sass mixin (#4606)
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
1 parent
7e498d52d0
commit
b127af7bb6
10 files changed
+41
-26
No files matched your search
@@ -24,7 +24,6 @@ import React from "react";
|
||||
import { boundMethod, cssNames } from "../../utils";
|
||||
|
||||
export interface CheckboxProps<T = boolean> {
|
||||
theme?: "dark" | "light";
|
||||
className?: string;
|
||||
label?: React.ReactNode;
|
||||
inline?: boolean;
|
||||
@@ -50,12 +49,11 @@ export class Checkbox extends React.PureComponent<CheckboxProps> {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { label, inline, className, value, theme, children, ...inputProps } = this.props;
|
||||
const { label, inline, className, value, children, ...inputProps } = this.props;
|
||||
const componentClass = cssNames("Checkbox flex align-center", className, {
|
||||
inline,
|
||||
checked: value,
|
||||
disabled: this.props.disabled,
|
||||
[`theme-${theme}`]: theme,
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user