From 3f7b5e8e5d4236463719332a34570c7bba877683 Mon Sep 17 00:00:00 2001 From: Marija Najdova Date: Mon, 13 Jun 2022 13:23:39 +0200 Subject: [PATCH] [lab] Fix React's `forwardRef` warning when importing from the index --- packages/mui-lab/src/DatePicker/DatePicker.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/mui-lab/src/DatePicker/DatePicker.tsx b/packages/mui-lab/src/DatePicker/DatePicker.tsx index adc77289f1f217..ef181161fb5f19 100644 --- a/packages/mui-lab/src/DatePicker/DatePicker.tsx +++ b/packages/mui-lab/src/DatePicker/DatePicker.tsx @@ -31,10 +31,11 @@ type DatePickerComponent = (( */ const DatePicker = React.forwardRef(function DeprecatedDatePicker( props: DatePickerProps, + ref: React.Ref, ) { warn(); - return ; + return ; }) as DatePickerComponent; DatePicker.propTypes /* remove-proptypes */ = {