Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
seankwarren committed Sep 27, 2023
1 parent 076a12c commit e1d0ba1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
2 changes: 1 addition & 1 deletion src/mui/components/select/BasicSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
20 changes: 0 additions & 20 deletions src/mui/components/textField/BasicTextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<TextField
type={type}
Expand Down

0 comments on commit e1d0ba1

Please sign in to comment.