From e1d0ba11cc1dfde4884264b418f5db14bb0d493b Mon Sep 17 00:00:00 2001 From: Sean Warren Date: Wed, 27 Sep 2023 13:01:58 -0700 Subject: [PATCH] chore: cleanup --- src/mui/components/select/BasicSelect.tsx | 2 +- .../components/textField/BasicTextField.tsx | 20 ------------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/src/mui/components/select/BasicSelect.tsx b/src/mui/components/select/BasicSelect.tsx index 7f603bf2..b2769585 100644 --- a/src/mui/components/select/BasicSelect.tsx +++ b/src/mui/components/select/BasicSelect.tsx @@ -17,7 +17,7 @@ type BasicSelectProps = { labelAsPlaceholder?: boolean; renderMenuItemContent?: (value: AvailableValue) => JSX.Element; }; -// TODO: move to cove.js + export default function BasicSelect({ disabled = false, selectedValue, diff --git a/src/mui/components/textField/BasicTextField.tsx b/src/mui/components/textField/BasicTextField.tsx index 2990cf36..ce06f105 100644 --- a/src/mui/components/textField/BasicTextField.tsx +++ b/src/mui/components/textField/BasicTextField.tsx @@ -33,26 +33,6 @@ function BasicTextField({ }: BasicTextFieldProps) { const inputLabelProps = labelAsPlaceholder ? {} : { shrink: true }; - const textFieldProps: TextFieldProps = { - type, - sx, - label, - fullWidth, - disabled, - variant, - size, - InputLabelProps: inputLabelProps, - onChange: (e) => onChange(e.target.value), - }; - - if (value !== undefined) { - textFieldProps.value = value; - } - - if (defaultValue !== undefined) { - textFieldProps.defaultValue = defaultValue; - } - return (