Skip to content

Commit

Permalink
fix: import order
Browse files Browse the repository at this point in the history
  • Loading branch information
shahmargi12 committed Sep 13, 2024
1 parent c13238f commit 6263784
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/components/basic/Dialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
********************************************************************************/

import { useTheme, useMediaQuery, type Theme } from '@mui/material'
import { type SystemStyleObject } from '@mui/system'
import MuiDialog, {
type DialogProps as MuiDialogProps,
} from '@mui/material/Dialog'
import { type SystemStyleObject } from '@mui/system'

export const CONTENT_SPACING_RIGHT_LEFT = 10
const MODAL_DEFAULT_WIDTH = '1000px'
Expand Down
14 changes: 5 additions & 9 deletions src/components/basic/Table/PageLoadingTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,11 @@ import { LoadMoreButton } from '../Button/LoadMoreButton'
import { hasMorePages, getMaxRows } from './components/Helper/helper'
import { Table, type TableProps } from '.'

export interface PaginFetchArgs<T> {
export interface PaginFetchArgs {
page: number
args?:
| (T & {
v: number
})
| {
v: number
}
// Add an ESLint exception until there is a solution
// eslint-disable-next-line
args?: any
}

export interface PaginMeta {
Expand All @@ -51,7 +47,7 @@ export interface PageLoadingTableProps<Row, Args>
loadLabel: string
// Add an ESLint exception until there is a solution
// eslint-disable-next-line
fetchHook: (paginArgs: PaginFetchArgs<Args>) => any
fetchHook: (paginArgs: PaginFetchArgs) => any
fetchHookArgs?: Args
fetchHookRefresh?: number
allItems?: Row[]
Expand Down

0 comments on commit 6263784

Please sign in to comment.