From 0eade2b3ef0f13b223fd14c07c8fd98d745511f7 Mon Sep 17 00:00:00 2001 From: Devansu Yadav Date: Wed, 12 Apr 2023 20:40:18 +0530 Subject: [PATCH] Remove the obsolete `CheckBox` component (#17186) --- .../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;