@@ -2,6 +2,7 @@ import React, { useEffect, useState } from 'react'
2
2
import { useDispatch , useSelector } from 'react-redux'
3
3
import { useHistory , useParams } from 'react-router-dom'
4
4
import { remove } from 'lodash'
5
+ import styled from 'styled-components'
5
6
6
7
import { FeatureFlags , DEFAULT_DELIMITER , Pages } from 'uiSrc/constants'
7
8
import {
@@ -35,11 +36,28 @@ import { ColorText, Text } from 'uiSrc/components/base/text'
35
36
import { Checkbox } from 'uiSrc/components/base/forms/checkbox/Checkbox'
36
37
37
38
import { RiIcon } from 'uiSrc/components/base/icons/RiIcon'
38
- import { Link } from 'uiSrc/components/base/link/Link'
39
39
import Recommendation from './components/recommendation'
40
40
import WelcomeScreen from './components/welcome-screen'
41
41
import PopoverRunAnalyze from './components/popover-run-analyze'
42
42
import 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
+ `
43
61
44
62
const LiveTimeRecommendations = ( ) => {
45
63
const { provider, connectionType } = useSelector ( connectedInstanceSelector )
@@ -137,25 +155,26 @@ const LiveTimeRecommendations = () => {
137
155
138
156
const renderHeader = ( ) => (
139
157
< 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 >
142
162
< RiTooltip
143
163
position = "bottom"
144
164
className = { styles . tooltip }
145
- anchorClassName = { styles . tooltipAnchor }
146
165
content = {
147
- < >
166
+ < Text size = "s" >
148
167
Tips will help you improve your database.
149
- < br />
168
+ < Spacer size = "s" />
150
169
New tips appear while you work with your database, including how
151
170
to improve performance and optimize memory usage.
152
171
< FeatureFlagComponent name = { FeatureFlags . envDependent } >
153
172
< >
154
- < br />
173
+ < Spacer size = "s" />
155
174
Eager for more tips? Run Database Analysis to get started.
156
175
</ >
157
176
</ FeatureFlagComponent >
158
- </ >
177
+ </ Text >
159
178
}
160
179
>
161
180
< RiIcon
@@ -166,10 +185,9 @@ const LiveTimeRecommendations = () => {
166
185
/>
167
186
</ RiTooltip >
168
187
< FeatureFlagComponent name = { FeatureFlags . envDependent } >
169
- < Link
188
+ < a
170
189
href = { EXTERNAL_LINKS . githubRepo }
171
190
target = "_blank"
172
- style = { { marginLeft : 6 } }
173
191
data-testid = "github-repo-btn"
174
192
>
175
193
< RiIcon
@@ -179,9 +197,9 @@ const LiveTimeRecommendations = () => {
179
197
size = "s"
180
198
data-testid = "github-repo-icon"
181
199
/>
182
- </ Link >
200
+ </ a >
183
201
</ FeatureFlagComponent >
184
- </ div >
202
+ </ Row >
185
203
186
204
{ isShowHiddenDisplayed && (
187
205
< Checkbox
@@ -230,13 +248,12 @@ const LiveTimeRecommendations = () => {
230
248
: ANALYZE_TOOLTIP_MESSAGE
231
249
}
232
250
>
233
- < Link
234
- className = { styles . link }
251
+ < FooterLink
235
252
onClick = { ( ) => setIsShowApproveRun ( true ) }
236
253
data-testid = "footer-db-analysis-link"
237
254
>
238
255
Database Analysis
239
- </ Link >
256
+ </ FooterLink >
240
257
</ PopoverRunAnalyze >
241
258
{ ' to get more tips' }
242
259
</ Text >
0 commit comments