File tree 2 files changed +8
-4
lines changed
src/components/Table/components
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
import React , { ComponentPropsWithoutRef , FC , useContext } from 'react' ;
2
2
import styled from 'styled-components' ;
3
- import { compose , textAlign , TextAlignProps } from 'styled-system' ;
3
+ import { compose , LayoutProps , textAlign , TextAlignProps } from 'styled-system' ;
4
4
import { TableContext } from '../context/TableContext' ;
5
5
import { TableProps } from './Table' ;
6
6
7
- type TableCellProps = Pick < TableProps , 'rowSize' | 'columnSpace' > & ComponentPropsWithoutRef < 'td' > & TextAlignProps ;
7
+ type TableCellProps = Pick < TableProps , 'rowSize' | 'columnSpace' > &
8
+ ComponentPropsWithoutRef < 'td' > &
9
+ TextAlignProps &
10
+ LayoutProps ;
8
11
9
12
const TableCellElement = styled . td < TableCellProps > `
10
13
height: ${ p => p . rowSize } ;
Original file line number Diff line number Diff line change 1
1
import React , { ComponentPropsWithoutRef , FC , useContext } from 'react' ;
2
2
import styled from 'styled-components' ;
3
- import { compose , textAlign , TextAlignProps } from 'styled-system' ;
3
+ import { compose , LayoutProps , textAlign , TextAlignProps } from 'styled-system' ;
4
4
import { Colors } from '../../../essentials' ;
5
5
import { theme } from '../../../essentials/theme' ;
6
6
import { get } from '../../../utils/themeGet' ;
@@ -9,7 +9,8 @@ import { TableProps } from './Table';
9
9
10
10
type TableHeaderCellProps = Pick < TableProps , 'rowSize' | 'columnSpace' > &
11
11
ComponentPropsWithoutRef < 'th' > &
12
- TextAlignProps ;
12
+ TextAlignProps &
13
+ LayoutProps ;
13
14
14
15
const TableHeaderCellElement = styled . th . attrs ( { theme } ) < TableHeaderCellProps > `
15
16
border-bottom: 0.0625rem solid ${ Colors . AUTHENTIC_BLUE_550 } !important;
You can’t perform that action at this time.
0 commit comments