Skip to content

Commit dd318ec

Browse files
committed
[fix] fix csv table examples for layers
Signed-off-by: Ihor Dykhta <[email protected]>
1 parent a6e151a commit dd318ec

File tree

5 files changed

+32
-23
lines changed

5 files changed

+32
-23
lines changed

src/layers/src/example-table.tsx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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;

src/layers/src/geojson-layer/geojson-info-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {useIntl} from 'react-intl';
88

99
import {FormattedMessage} from '@kepler.gl/localization';
1010

11-
import Table from '../table';
11+
import Table from '../example-table';
1212

1313
const InfoModal = styled.div`
1414
font-size: 13px;

src/layers/src/icon-layer/icon-info-modal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import React from 'react';
55
import styled from 'styled-components';
66
import {line} from 'd3-shape';
77
import {FormattedMessage} from '@kepler.gl/localization';
8-
import Table from '../table';
8+
9+
import Table from '../example-table';
910

1011
const CenterFlexbox = styled.div`
1112
display: flex;

src/layers/src/scenegraph-layer/scenegraph-info-modal.tsx

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,7 @@
44
import React from 'react';
55
import styled from 'styled-components';
66

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';
278

289
const StyledTitle = styled.div`
2910
font-size: 20px;

src/layers/src/trip-layer/trip-info-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {useIntl} from 'react-intl';
88

99
import {FormattedMessage} from '@kepler.gl/localization';
1010

11-
import Table from '../table';
11+
import Table from '../example-table';
1212

1313
const InfoModal = styled.div`
1414
font-size: 13px;

0 commit comments

Comments
 (0)