File tree Expand file tree Collapse file tree 5 files changed +32
-23
lines changed Expand file tree Collapse file tree 5 files changed +32
-23
lines changed Original file line number Diff line number Diff line change
1
+ // SPDX-License-Identifier: MIT
2
+ // Copyright contributors to the kepler.gl project
3
+
4
+ import styled from 'styled-components' ;
5
+
6
+ export const StyledTable = styled . table `
7
+ width: 100%;
8
+ border-spacing: 0;
9
+
10
+ thead {
11
+ tr th {
12
+ background: ${ props => props . theme . panelBackgroundLT } ;
13
+ color: ${ props => props . theme . titleColorLT } ;
14
+ padding: 18px 12px;
15
+ text-align: start;
16
+ }
17
+ }
18
+
19
+ tbody {
20
+ tr td {
21
+ border-bottom: ${ props => props . theme . panelBorderLT } ;
22
+ padding: 12px;
23
+ }
24
+ }
25
+ ` ;
26
+
27
+ export default StyledTable ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import {useIntl} from 'react-intl';
8
8
9
9
import { FormattedMessage } from '@kepler.gl/localization' ;
10
10
11
- import Table from '../table' ;
11
+ import Table from '../example- table' ;
12
12
13
13
const InfoModal = styled . div `
14
14
font-size: 13px;
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ import React from 'react';
5
5
import styled from 'styled-components' ;
6
6
import { line } from 'd3-shape' ;
7
7
import { FormattedMessage } from '@kepler.gl/localization' ;
8
- import Table from '../table' ;
8
+
9
+ import Table from '../example-table' ;
9
10
10
11
const CenterFlexbox = styled . div `
11
12
display: flex;
Original file line number Diff line number Diff line change 4
4
import React from 'react' ;
5
5
import styled from 'styled-components' ;
6
6
7
- export const Table = styled . table `
8
- width: 100%;
9
- border-spacing: 0;
10
-
11
- thead {
12
- tr th {
13
- background: ${ props => props . theme . panelBackgroundLT } ;
14
- color: ${ props => props . theme . titleColorLT } ;
15
- padding: 18px 12px;
16
- text-align: start;
17
- }
18
- }
19
-
20
- tbody {
21
- tr td {
22
- border-bottom: ${ props => props . theme . panelBorderLT } ;
23
- padding: 12px;
24
- }
25
- }
26
- ` ;
7
+ import Table from '../example-table' ;
27
8
28
9
const StyledTitle = styled . div `
29
10
font-size: 20px;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import {useIntl} from 'react-intl';
8
8
9
9
import { FormattedMessage } from '@kepler.gl/localization' ;
10
10
11
- import Table from '../table' ;
11
+ import Table from '../example- table' ;
12
12
13
13
const InfoModal = styled . div `
14
14
font-size: 13px;
You can’t perform that action at this time.
0 commit comments