@@ -3,10 +3,10 @@ import React, { useCallback } from "react";
3
3
import { FormattedMessage , FormattedNumber } from "react-intl" ;
4
4
import { useNavigate } from "react-router-dom" ;
5
5
import { CellProps } from "react-table" ;
6
- import styled from "styled-components" ;
7
6
8
7
import { SortOrderEnum } from "components/EntityTable/types" ;
9
8
import { Table , SortableTableHeader } from "components/ui/Table" ;
9
+ import { Text } from "components/ui/Text" ;
10
10
11
11
import { useQuery } from "hooks/useQuery" ;
12
12
import { CreditConsumptionByConnector } from "packages/cloud/lib/domain/cloudWorkspaces/types" ;
@@ -15,18 +15,7 @@ import { useSourceDefinitionList } from "services/connector/SourceDefinitionServ
15
15
16
16
import ConnectionCell from "./ConnectionCell" ;
17
17
import UsageCell from "./UsageCell" ;
18
-
19
- const Content = styled . div `
20
- padding: 0 60px 0 15px;
21
- ` ;
22
-
23
- const UsageValue = styled . div `
24
- font-weight: 500;
25
- font-size: 14px;
26
- line-height: 17px;
27
- padding-right: 10px;
28
- min-width: 53px;
29
- ` ;
18
+ import styles from "./UsagePerConnectionTable.module.scss" ;
30
19
31
20
interface UsagePerConnectionTableProps {
32
21
creditConsumption : CreditConsumptionByConnector [ ] ;
@@ -143,9 +132,9 @@ const UsagePerConnectionTable: React.FC<UsagePerConnectionTableProps> = ({ credi
143
132
collapse : true ,
144
133
customPadding : { right : 0 } ,
145
134
Cell : ( { cell } : CellProps < FullTableProps > ) => (
146
- < UsageValue >
135
+ < Text className = { styles . usageValue } size = "lg" >
147
136
< FormattedNumber value = { cell . value } maximumFractionDigits = { 2 } minimumFractionDigits = { 2 } />
148
- </ UsageValue >
137
+ </ Text >
149
138
) ,
150
139
} ,
151
140
{
@@ -166,9 +155,9 @@ const UsagePerConnectionTable: React.FC<UsagePerConnectionTableProps> = ({ credi
166
155
) ;
167
156
168
157
return (
169
- < Content >
158
+ < div className = { styles . content } >
170
159
< Table columns = { columns } data = { sortingData } light />
171
- </ Content >
160
+ </ div >
172
161
) ;
173
162
} ;
174
163
0 commit comments