Skip to content

Commit

Permalink
[internal][pickers] Follow "private by default" in makeDateRangePicker (
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored Mar 22, 2021
1 parent 54672ee commit f1fe74c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types';
import { ResponsiveTooltipWrapper } from '../internal/pickers/wrappers/ResponsiveWrapper';
import { makeDateRangePicker } from './makeDateRangePicker';
import makeDateRangePicker from './makeDateRangePicker';

/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ export interface BaseDateRangePickerProps<TDate>
endText?: React.ReactNode;
}

export type DateRangePickerComponent<PublicWrapperProps> = (<TDate>(
type DateRangePickerComponent<PublicWrapperProps> = (<TDate>(
props: BaseDateRangePickerProps<TDate> &
PublicWrapperProps &
AllSharedDateRangePickerProps<TDate> &
React.RefAttributes<HTMLDivElement>,
) => JSX.Element) & { propTypes: unknown };

export const useDateRangeValidation = makeValidationHook<
const useDateRangeValidation = makeValidationHook<
DateRangeValidationError,
RangeInput<unknown>,
BaseDateRangePickerProps<any>
Expand All @@ -59,7 +59,7 @@ interface WithWrapperProps {
>;
}

export function makeDateRangePicker<PublicWrapperProps>(
export default function makeDateRangePicker<PublicWrapperProps>(
name: string,
Wrapper: React.JSXElementConstructor<PublicWrapperProps & PrivateWrapperProps>,
): DateRangePickerComponent<PublicWrapperProps> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import PropTypes from 'prop-types';
import { makeDateRangePicker } from '../DateRangePicker/makeDateRangePicker';
import makeDateRangePicker from '../DateRangePicker/makeDateRangePicker';
import DesktopTooltipWrapper from '../internal/pickers/wrappers/DesktopTooltipWrapper';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import PropTypes from 'prop-types';
import { makeDateRangePicker } from '../DateRangePicker/makeDateRangePicker';
import makeDateRangePicker from '../DateRangePicker/makeDateRangePicker';
import MobileWrapper from '../internal/pickers/wrappers/MobileWrapper';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import PropTypes from 'prop-types';
import { makeDateRangePicker } from '../DateRangePicker/makeDateRangePicker';
import makeDateRangePicker from '../DateRangePicker/makeDateRangePicker';
import StaticWrapper from '../internal/pickers/wrappers/StaticWrapper';

/**
Expand Down

0 comments on commit f1fe74c

Please sign in to comment.