Skip to content

Commit

Permalink
fix: extended interface
Browse files Browse the repository at this point in the history
  • Loading branch information
riddhybansal committed Sep 17, 2024
1 parent 6d68842 commit 0c40f27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/components/FluidDatePicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import FluidDatePicker from './FluidDatePicker';
import { FluidDatePickerProps } from './FluidDatePicker';
import type { FluidDatePickerProps } from './FluidDatePicker';
import { FluidDatePickerSkeletonProps } from './FluidDatePicker.Skeleton';
export type { FluidDatePickerProps, FluidDatePickerSkeletonProps };
export { default as FluidDatePickerSkeleton } from './FluidDatePicker.Skeleton';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
*/

import React from 'react';
import DatePickerInput from '../DatePickerInput';
import DatePickerInput, { DatePickerInputProps } from '../DatePickerInput';
import { FormContext } from '../FluidForm/FormContext';

const FluidDatePickerInput = React.forwardRef(function FluidDatePickerInput(
{ ...other },
{ ...other }: DatePickerInputProps,
ref: React.Ref<HTMLDivElement>
) {
return (
<FormContext.Provider value={{ isFluid: true }}>
<DatePickerInput id={''} labelText={undefined} ref={ref} {...other} />
<DatePickerInput ref={ref} {...other} />
</FormContext.Provider>
);
});
Expand Down

0 comments on commit 0c40f27

Please sign in to comment.