Skip to content

Commit

Permalink
fixup eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
k-rajat19 committed Nov 23, 2024
1 parent 72c1a3e commit b807ef2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/x-data-grid/src/components/containers/GridOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,18 @@ import { useGridApiContext } from '../../hooks/utils/useGridApiContext';
import { useGridSelector } from '../../hooks/utils/useGridSelector';
import { gridDimensionsSelector } from '../../hooks/features/dimensions';
import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
import { GridOverlayType } from '../../hooks/features/overlays/useGridOverlays';
import { GridLoadingOverlayVariant } from '../GridLoadingOverlay';
import { GridSlotsComponent } from '../../models';

export type GridOverlayProps = React.HTMLAttributes<HTMLDivElement> & {
sx?: SxProps<Theme>;
};

type GridLoadingOverlayVariant = 'circular-progress' | 'linear-progress' | 'skeleton';

type GridOverlayType =
| keyof Pick<GridSlotsComponent, 'noRowsOverlay' | 'noResultsOverlay' | 'loadingOverlay'>
| null;

interface GridOverlaysProps {
overlayType: GridOverlayType;
loadingOverlayVariant: GridLoadingOverlayVariant | null;
Expand Down Expand Up @@ -147,6 +152,7 @@ GridOverlay.propTypes = {
PropTypes.object,
]),
} as any;

GridOverlayWrapper.propTypes = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as React from 'react';
import { useGridSelector } from '../../utils';
import { useGridApiContext } from '../../utils/useGridApiContext';
import { useGridRootProps } from '../../utils/useGridRootProps';
Expand Down

0 comments on commit b807ef2

Please sign in to comment.