Skip to content

Commit

Permalink
Update relevant demos
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasTy committed May 14, 2024
1 parent d790d25 commit 94e5120
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
import { DateRangePicker } from '@mui/x-date-pickers-pro/DateRangePicker';
import { unstable_useMultiInputDateRangeField as useMultiInputDateRangeField } from '@mui/x-date-pickers-pro/MultiInputDateRangeField';

// eslint-disable-next-line no-restricted-imports

const BrowserField = React.forwardRef((props, ref) => {
const {
// Should be ignored
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ import {
DateRangeValidationError,
MultiInputFieldSlotTextFieldProps,
RangeFieldSection,
UseDateRangeFieldProps,
} from '@mui/x-date-pickers-pro/models';
// eslint-disable-next-line no-restricted-imports
import { UseDateRangeFieldProps } from '@mui/x-date-pickers-pro';

interface BrowserFieldProps
extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import { DateRangePicker } from '@mui/x-date-pickers-pro/DateRangePicker';
import { unstable_useMultiInputDateRangeField as useMultiInputDateRangeField } from '@mui/x-date-pickers-pro/MultiInputDateRangeField';
import { Unstable_PickersSectionList as PickersSectionList } from '@mui/x-date-pickers/PickersSectionList';

// eslint-disable-next-line no-restricted-imports

const BrowserFieldRoot = styled('div', { name: 'BrowserField', slot: 'Root' })({
display: 'flex',
alignItems: 'center',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ import {
MultiInputFieldSlotTextFieldProps,
DateRangeValidationError,
DateRange,
UseDateRangeFieldProps,
} from '@mui/x-date-pickers-pro/models';
// eslint-disable-next-line no-restricted-imports
import { UseDateRangeFieldProps } from '@mui/x-date-pickers-pro';

const BrowserFieldRoot = styled('div', { name: 'BrowserField', slot: 'Root' })({
display: 'flex',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
import { DateRangePicker } from '@mui/x-date-pickers-pro/DateRangePicker';
import { unstable_useMultiInputDateRangeField as useMultiInputDateRangeField } from '@mui/x-date-pickers-pro/MultiInputDateRangeField';

// eslint-disable-next-line no-restricted-imports

const joyTheme = extendJoyTheme();

const JoyField = React.forwardRef((props, ref) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ import {
DateRangeValidationError,
MultiInputFieldSlotTextFieldProps,
RangeFieldSection,
UseDateRangeFieldProps,
} from '@mui/x-date-pickers-pro/models';
// eslint-disable-next-line no-restricted-imports
import { UseDateRangeFieldProps } from '@mui/x-date-pickers-pro';

const joyTheme = extendJoyTheme();

Expand Down

0 comments on commit 94e5120

Please sign in to comment.