🚨(lint) update file for prettier 3.0.0
Prettier 3.0.0 comes with new standards so we need to upgrade our files to comply with it.
This commit is contained in:
@@ -26,7 +26,7 @@ export type DatePickerProps = DatePickerAuxSubProps & {
|
||||
export const DatePicker = (props: DatePickerProps) => {
|
||||
if (props.defaultValue && props.value) {
|
||||
throw new Error(
|
||||
"You cannot use both defaultValue and value props on DatePicker component"
|
||||
"You cannot use both defaultValue and value props on DatePicker component",
|
||||
);
|
||||
}
|
||||
const ref = useRef<HTMLDivElement>(null);
|
||||
@@ -48,12 +48,12 @@ export const DatePicker = (props: DatePickerProps) => {
|
||||
const { fieldProps, calendarProps, ...pickerProps } = useDatePicker(
|
||||
options,
|
||||
pickerState,
|
||||
ref
|
||||
ref,
|
||||
);
|
||||
|
||||
const labelAsPlaceholder = useMemo(
|
||||
() => !isFocused && !pickerState.isOpen && !pickerState.value,
|
||||
[pickerState.value, pickerState.isOpen, isFocused]
|
||||
[pickerState.value, pickerState.isOpen, isFocused],
|
||||
);
|
||||
|
||||
const calendar = <Calendar {...calendarProps} />;
|
||||
|
||||
Reference in New Issue
Block a user