@@ -2,6 +2,7 @@ import React, { useEffect, useState } from 'react'
22import { useDispatch , useSelector } from 'react-redux'
33import { useHistory , useParams } from 'react-router-dom'
44import { remove } from 'lodash'
5+ import styled from 'styled-components'
56
67import { FeatureFlags , DEFAULT_DELIMITER , Pages } from 'uiSrc/constants'
78import {
@@ -35,11 +36,28 @@ import { ColorText, Text } from 'uiSrc/components/base/text'
3536import { Checkbox } from 'uiSrc/components/base/forms/checkbox/Checkbox'
3637
3738import { RiIcon } from 'uiSrc/components/base/icons/RiIcon'
38- import { Link } from 'uiSrc/components/base/link/Link'
3939import Recommendation from './components/recommendation'
4040import WelcomeScreen from './components/welcome-screen'
4141import PopoverRunAnalyze from './components/popover-run-analyze'
4242import styles from './styles.module.scss'
43+ import { Row } from 'uiSrc/components/base/layout/flex'
44+ import { Spacer } from 'uiSrc/components/base/layout'
45+
46+ const FooterLink = styled . button < {
47+ onClick ?: ( ) => void ;
48+ 'data-testid' ?: string ;
49+ children ?: React . ReactNode ;
50+ } > `
51+ font:
52+ normal normal 400 12px/14px Graphik,
53+ sans-serif !important;
54+ padding: 2px 0 0;
55+ margin: 0;
56+ text-decoration: underline !important;
57+ :hover {
58+ text-decoration: none !important;
59+ }
60+ `
4361
4462const LiveTimeRecommendations = ( ) => {
4563 const { provider, connectionType } = useSelector ( connectedInstanceSelector )
@@ -137,25 +155,26 @@ const LiveTimeRecommendations = () => {
137155
138156 const renderHeader = ( ) => (
139157 < div className = { styles . actions } >
140- < div >
141- < ColorText className = { styles . boldText } > Our Tips</ ColorText >
158+ < Row align = "center" gap = "s" >
159+ < ColorText variant = "semiBold" className = { styles . boldText } >
160+ Our Tips
161+ </ ColorText >
142162 < RiTooltip
143163 position = "bottom"
144164 className = { styles . tooltip }
145- anchorClassName = { styles . tooltipAnchor }
146165 content = {
147- < >
166+ < Text size = "s" >
148167 Tips will help you improve your database.
149- < br />
168+ < Spacer size = "s" />
150169 New tips appear while you work with your database, including how
151170 to improve performance and optimize memory usage.
152171 < FeatureFlagComponent name = { FeatureFlags . envDependent } >
153172 < >
154- < br />
173+ < Spacer size = "s" />
155174 Eager for more tips? Run Database Analysis to get started.
156175 </ >
157176 </ FeatureFlagComponent >
158- </ >
177+ </ Text >
159178 }
160179 >
161180 < RiIcon
@@ -166,10 +185,9 @@ const LiveTimeRecommendations = () => {
166185 />
167186 </ RiTooltip >
168187 < FeatureFlagComponent name = { FeatureFlags . envDependent } >
169- < Link
188+ < a
170189 href = { EXTERNAL_LINKS . githubRepo }
171190 target = "_blank"
172- style = { { marginLeft : 6 } }
173191 data-testid = "github-repo-btn"
174192 >
175193 < RiIcon
@@ -179,9 +197,9 @@ const LiveTimeRecommendations = () => {
179197 size = "s"
180198 data-testid = "github-repo-icon"
181199 />
182- </ Link >
200+ </ a >
183201 </ FeatureFlagComponent >
184- </ div >
202+ </ Row >
185203
186204 { isShowHiddenDisplayed && (
187205 < Checkbox
@@ -230,13 +248,12 @@ const LiveTimeRecommendations = () => {
230248 : ANALYZE_TOOLTIP_MESSAGE
231249 }
232250 >
233- < Link
234- className = { styles . link }
251+ < FooterLink
235252 onClick = { ( ) => setIsShowApproveRun ( true ) }
236253 data-testid = "footer-db-analysis-link"
237254 >
238255 Database Analysis
239- </ Link >
256+ </ FooterLink >
240257 </ PopoverRunAnalyze >
241258 { ' to get more tips' }
242259 </ Text >
0 commit comments