File tree Expand file tree Collapse file tree 2 files changed +10
-16
lines changed
pages/rdi/statistics/target-connections Expand file tree Collapse file tree 2 files changed +10
-16
lines changed Original file line number Diff line number Diff line change @@ -92,27 +92,20 @@ const getAlignValue = (align?: MapProps['$align']) => {
9292export const StyledColorText = styled ( Typography . Body ) < MapProps > `
9393 ${ useColorTextStyles }
9494`
95+
9596export const StyledText = styled ( Typography . Body ) < MapProps > `
9697 ${ useColorTextStyles } ;
9798 ${ ( { $align } ) => getAlignValue ( $align ) } ;
9899`
99- export const Indicator = styled . div <
100- {
101- $color : ColorType
102- } & CommonProps
103- > `
104- width: 0.8rem;
105- height: 0.8rem;
106- border-radius: 50%;
107- background-color: ${ ( { $color } ) => $color || 'inherit' } ;
108- `
109100
110101const useStatusColorStyles = ( { $color } : MapProps = { } ) => {
111102 const theme = useTheme ( )
112103 const colors = theme . semantic . color
113104
114105 const getColorValue = ( color ?: ColorType ) => {
115106 switch ( color ) {
107+ case 'informative' :
108+ return colors . text . informative400
116109 case 'danger' :
117110 return colors . text . danger500
118111 case 'warning' :
@@ -129,16 +122,17 @@ const useStatusColorStyles = ({ $color }: MapProps = {}) => {
129122 `
130123}
131124
132- export const StatusIndicator = styled . div <
125+ export const Indicator = styled . div <
133126 {
134127 $color : ColorType
135128 } & CommonProps
136129> `
137- ${ useStatusColorStyles } ;
138- width: 1rem;
139- height: 1rem;
130+ width: 0.8rem;
131+ height: 0.8rem;
140132 border-radius: 50%;
133+ ${ useStatusColorStyles } ;
141134`
135+
142136export const mapSize = ( size : TextSizeType ) : BodyProps [ 'size' ] => {
143137 if ( size === 'm' ) {
144138 return 'M'
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import {
1212 StyledRdiAnalyticsTable ,
1313 StyledRdiStatisticsSectionBody ,
1414} from 'uiSrc/pages/rdi/statistics/styles'
15- import { StatusIndicator } from 'uiSrc/components/base/text/text.styles'
15+ import { Indicator } from 'uiSrc/components/base/text/text.styles'
1616import { Row } from 'uiSrc/components/base/layout/flex'
1717
1818type ConnectionData = {
@@ -49,7 +49,7 @@ const columns: ColumnDefinition<ConnectionData>[] = [
4949 } ) => (
5050 < Row align = "center" justify = "center" >
5151 < RiTooltip content = { status } >
52- < StatusIndicator $color = { getStatusColor ( status ) } />
52+ < Indicator $color = { getStatusColor ( status ) } />
5353 </ RiTooltip >
5454 </ Row >
5555 ) ,
You can’t perform that action at this time.
0 commit comments