Skip to content

Commit

Permalink
[internal][Picker] Remove unused TView type argument
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Apr 24, 2021
1 parent ddafaa0 commit f08b4d3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/material-ui-lab/src/internal/pickers/Picker/Picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,22 @@ import { BasePickerProps, CalendarAndClockProps } from '../typings/BasePicker';
import { AllAvailableViews } from '../typings/Views';
import PickerView from './PickerView';

export interface ExportedPickerProps<TView extends AllAvailableViews>
export interface ExportedPickerProps
extends Omit<BasePickerProps, 'value' | 'onChange'>,
CalendarAndClockProps<unknown> {
dateRangeIcon?: React.ReactNode;
/**
* First view to show.
*/
openTo?: TView;
openTo?: AllAvailableViews;
timeIcon?: React.ReactNode;
/**
* Array of views to show.
*/
views?: readonly TView[];
views?: readonly AllAvailableViews[];
}

export interface PickerProps<TView extends AllAvailableViews, TDateValue = any>
extends ExportedPickerProps<TView> {
export interface PickerProps<TDateValue = any> extends ExportedPickerProps {
date: TDateValue;
DateInputProps: DateInputPropsLike;
isMobileKeyboardViewOpen: boolean;
Expand Down Expand Up @@ -95,7 +94,7 @@ function Picker({
toolbarTitle,
views = ['year', 'month', 'day', 'hours', 'minutes', 'seconds'],
...other
}: PickerProps<AllAvailableViews> & WithStyles<typeof styles>) {
}: PickerProps & WithStyles<typeof styles>) {
const isLandscape = useIsLandscape(views, orientation);
const wrapperVariant = React.useContext(WrapperVariantContext);

Expand Down

0 comments on commit f08b4d3

Please sign in to comment.