From 0623f039cc8fed529621e8208ca312af2b468718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= Date: Wed, 24 Jun 2020 17:05:22 +0200 Subject: [PATCH] Heed review comments --- scm-ui/ui-components/src/forms/TriStateCheckbox.tsx | 12 ++---------- scm-ui/ui-styles/src/scm.scss | 4 ---- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/scm-ui/ui-components/src/forms/TriStateCheckbox.tsx b/scm-ui/ui-components/src/forms/TriStateCheckbox.tsx index 17c8628357..b9276da2c0 100644 --- a/scm-ui/ui-components/src/forms/TriStateCheckbox.tsx +++ b/scm-ui/ui-components/src/forms/TriStateCheckbox.tsx @@ -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 = ({ onChange, checked, indeterminate, disabled, label }) => { - const onCheckboxChange = () => { - if (onChange) { - console.log("clickediclick"); - onChange(!checked); - } - }; - +const TriStateCheckbox: FC = ({ checked, indeterminate, disabled, label }) => { let icon; if (indeterminate) { icon = "minus-square"; @@ -60,7 +52,7 @@ const TriStateCheckbox: FC = ({ onChange, checked, indeterminate, disable if (disabled) { color = "grey-light"; } else if (checked || indeterminate) { - color = "blue"; + color = "link"; } else { color = "black"; } diff --git a/scm-ui/ui-styles/src/scm.scss b/scm-ui/ui-styles/src/scm.scss index ccdf0ae0f5..2b34ddf295 100644 --- a/scm-ui/ui-styles/src/scm.scss +++ b/scm-ui/ui-styles/src/scm.scss @@ -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;