From a1ce8ae7ca45900d4fa2019d25ba124872de06b1 Mon Sep 17 00:00:00 2001 From: Devansu Yadav Date: Wed, 12 Apr 2023 14:49:15 +0000 Subject: [PATCH] [dashboard] delete obsolete `CheckBox` component --- .../dashboard/src/components/CheckBox.tsx | 55 ------------------- 1 file changed, 55 deletions(-) delete mode 100644 components/dashboard/src/components/CheckBox.tsx diff --git a/components/dashboard/src/components/CheckBox.tsx b/components/dashboard/src/components/CheckBox.tsx deleted file mode 100644 index 4c7423c48f3cf6..00000000000000 --- a/components/dashboard/src/components/CheckBox.tsx +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Copyright (c) 2021 Gitpod GmbH. All rights reserved. - * Licensed under the GNU Affero General Public License (AGPL). - * See License.AGPL.txt in the project root for license information. - */ - -function CheckBox(props: { - name?: string; - title: string | React.ReactNode; - desc: string | React.ReactNode; - checked: boolean; - disabled?: boolean; - className?: string; - onChange?: (e: React.ChangeEvent) => void; -}) { - const inputProps: React.InputHTMLAttributes = { - checked: props.checked, - disabled: props.disabled, - onChange: props.onChange, - }; - if (props.name) { - inputProps.name = props.name; - } - const className = props.className ?? "mt-4"; - - const checkboxId = `checkbox-${props.title}-${String(Math.random())}`; - - return ( -
- -
- -
{props.desc}
-
-
- ); -} - -export default CheckBox;