File tree Expand file tree Collapse file tree 3 files changed +18
-60
lines changed
redisinsight/ui/src/pages/home/components/db-status Expand file tree Collapse file tree 3 files changed +18
-60
lines changed Original file line number Diff line number Diff line change 11import styled from 'styled-components'
22
3+ import { RiIcon } from 'uiSrc/components/base/icons'
4+
35export const IconWrapper = styled . div < { children ?: React . ReactNode } > `
46 margin-left: -${ ( { theme } ) => theme . core . space . space150 } ;
57`
8+
9+ export const InfoIcon = styled ( RiIcon ) . attrs ( {
10+ type : 'ToastInfoIcon' ,
11+ size : 'S' ,
12+ color : 'custom' ,
13+ } ) `
14+ color: ${ ( { theme } ) => theme . color . orange500 } ;
15+ margin-left: -1px;
16+ `
Original file line number Diff line number Diff line change 11import React from 'react'
2- import cx from 'classnames'
32import { differenceInDays } from 'date-fns'
43
54import { useSelector } from 'react-redux'
@@ -15,13 +14,13 @@ import {
1514import { RiTooltip } from 'uiSrc/components'
1615import { RiIcon } from 'uiSrc/components/base/icons/RiIcon'
1716import { Indicator } from 'uiSrc/components/base/text/text.styles'
17+ import { Row } from 'uiSrc/components/base/layout/flex'
1818import {
1919 CHECK_CLOUD_DATABASE ,
2020 WARNING_WITH_CAPABILITY ,
2121 WARNING_WITHOUT_CAPABILITY ,
2222} from './texts'
23- import styles from './styles.module.scss'
24- import { IconWrapper } from './DbStatus.styles'
23+ import { IconWrapper , InfoIcon } from './DbStatus.styles'
2524
2625export interface Props {
2726 id : string
@@ -77,14 +76,10 @@ const DbStatus = (props: Props) => {
7776 />
7877 }
7978 position = "right"
80- className = { styles . tooltip }
8179 >
82- < div
83- className = { cx ( styles . status , styles . warning ) }
84- data-testid = { `database-status-${ type } -${ id } ` }
85- >
86- !
87- </ div >
80+ < IconWrapper data-testid = { `database-status-${ type } -${ id } ` } >
81+ < InfoIcon />
82+ </ IconWrapper >
8883 </ RiTooltip >
8984 )
9085
@@ -133,10 +128,10 @@ const WarningTooltipContent = (props: WarningTooltipProps) => {
133128 } )
134129
135130 return (
136- < div className = { styles . warningTooltipContent } >
131+ < Row gap = "l" >
137132 < RiIcon type = "AlarmIcon" customSize = "50px" />
138133 < div > { content } </ div >
139- </ div >
134+ </ Row >
140135 )
141136}
142137
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments