File tree Expand file tree Collapse file tree 4 files changed +16
-12
lines changed Expand file tree Collapse file tree 4 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
- import { SummaryContext } from './Summary ' ;
2
+ import SummaryContext from './SummaryContext ' ;
3
3
import Cell from '../Cell' ;
4
4
import TableContext from '../context/TableContext' ;
5
5
import type { AlignType } from '../interface' ;
Original file line number Diff line number Diff line change 1
- import * as React from 'react' ;
1
+ import type * as React from 'react' ;
2
2
import Cell from './Cell' ;
3
3
import Row from './Row' ;
4
- import type { ColumnType , StickyOffsets } from '../interface' ;
5
-
6
- type FlattenColumns < RecordType > = readonly ( ColumnType < RecordType > & { scrollbar ?: boolean } ) [ ] ;
7
-
8
- export const SummaryContext = React . createContext < {
9
- stickyOffsets ?: StickyOffsets ;
10
- scrollColumnIndex ?: number ;
11
- flattenColumns ?: FlattenColumns < any > ;
12
- } > ( { } ) ;
13
4
14
5
export interface SummaryProps {
15
6
fixed ?: boolean | 'top' | 'bottom' ;
Original file line number Diff line number Diff line change
1
+ import * as React from 'react' ;
2
+ import type { ColumnType , StickyOffsets } from '../interface' ;
3
+
4
+ type FlattenColumns < RecordType > = readonly ( ColumnType < RecordType > & { scrollbar ?: boolean } ) [ ] ;
5
+
6
+ const SummaryContext = React . createContext < {
7
+ stickyOffsets ?: StickyOffsets ;
8
+ scrollColumnIndex ?: number ;
9
+ flattenColumns ?: FlattenColumns < any > ;
10
+ } > ( { } ) ;
11
+
12
+ export default SummaryContext ;
Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
2
import TableContext from '../context/TableContext' ;
3
- import Summary , { SummaryContext } from './Summary' ;
3
+ import Summary from './Summary' ;
4
+ import SummaryContext from './SummaryContext' ;
4
5
import type { ColumnType , StickyOffsets } from '../interface' ;
5
6
6
7
type FlattenColumns < RecordType > = readonly ( ColumnType < RecordType > & { scrollbar ?: boolean } ) [ ] ;
You can’t perform that action at this time.
0 commit comments