mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 06:55:47 +01:00
Heed review comments
This commit is contained in:
@@ -25,21 +25,13 @@ import React, { FC } from "react";
|
||||
import Icon from "../Icon";
|
||||
|
||||
type Props = {
|
||||
onChange?: (value: boolean) => void;
|
||||
checked: boolean;
|
||||
indeterminate?: boolean;
|
||||
disabled?: boolean;
|
||||
label?: string;
|
||||
};
|
||||
|
||||
const TriStateCheckbox: FC<Props> = ({ onChange, checked, indeterminate, disabled, label }) => {
|
||||
const onCheckboxChange = () => {
|
||||
if (onChange) {
|
||||
console.log("clickediclick");
|
||||
onChange(!checked);
|
||||
}
|
||||
};
|
||||
|
||||
const TriStateCheckbox: FC<Props> = ({ checked, indeterminate, disabled, label }) => {
|
||||
let icon;
|
||||
if (indeterminate) {
|
||||
icon = "minus-square";
|
||||
@@ -60,7 +52,7 @@ const TriStateCheckbox: FC<Props> = ({ onChange, checked, indeterminate, disable
|
||||
if (disabled) {
|
||||
color = "grey-light";
|
||||
} else if (checked || indeterminate) {
|
||||
color = "blue";
|
||||
color = "link";
|
||||
} else {
|
||||
color = "black";
|
||||
}
|
||||
|
||||
@@ -160,10 +160,6 @@ $danger-25: scale-color($danger, $lightness: 75%);
|
||||
color: $blue-light !important;
|
||||
}
|
||||
|
||||
.has-text-blue {
|
||||
color: $blue !important;
|
||||
}
|
||||
|
||||
// border and background colors
|
||||
.has-background-dark-75 {
|
||||
background-color: $dark-75;
|
||||
|
||||
Reference in New Issue
Block a user