Skip to content

Commit

Permalink
Remove unused variable inputRef
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianfrey committed May 30, 2023
1 parent 3c72aac commit a3ae022
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ export const MaterialDateControl = (props: ControlProps) => {
data,
config,
} = props;
const inputRef = React.useRef<HTMLInputElement | null>(null);

const isValid = errors.length === 0;
const appliedUiSchemaOptions = merge({}, config, uischema.options);
const showDescription = !isDescriptionHidden(
Expand Down Expand Up @@ -93,7 +91,6 @@ export const MaterialDateControl = (props: ControlProps) => {
<DatePicker
label={label}
value={value}
inputRef={inputRef}
onChange={onChange}
format={format}
views={views}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ export const MaterialDateTimeControl = (props: ControlProps) => {
data,
config,
} = props;
const inputRef = React.useRef<HTMLInputElement | null>(null);

const appliedUiSchemaOptions = merge({}, config, uischema.options);
const isValid = errors.length === 0;

Expand Down Expand Up @@ -98,7 +96,6 @@ export const MaterialDateTimeControl = (props: ControlProps) => {
<Hidden xsUp={!visible}>
<LocalizationProvider dateAdapter={AdapterDayjs}>
<DateTimePicker
inputRef={inputRef}
label={label}
value={value}
onChange={onChange}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ export const MaterialTimeControl = (props: ControlProps) => {
data,
config,
} = props;
const inputRef = React.useRef<HTMLInputElement | null>(null);

const appliedUiSchemaOptions = merge({}, config, uischema.options);
const isValid = errors.length === 0;

Expand Down Expand Up @@ -92,7 +90,6 @@ export const MaterialTimeControl = (props: ControlProps) => {
<Hidden xsUp={!visible}>
<LocalizationProvider dateAdapter={AdapterDayjs}>
<TimePicker
inputRef={inputRef}
label={label}
value={value}
onChange={onChange}
Expand Down

0 comments on commit a3ae022

Please sign in to comment.