File tree Expand file tree Collapse file tree 6 files changed +150
-56
lines changed
components/explore-guides Expand file tree Collapse file tree 6 files changed +150
-56
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ import { Spacer } from 'uiSrc/components/base/layout/spacer'
13
13
import { Title } from 'uiSrc/components/base/text/Title'
14
14
import { Text } from 'uiSrc/components/base/text'
15
15
import { RiIcon } from 'uiSrc/components/base/icons/RiIcon'
16
+ import { SecondaryButton } from 'uiSrc/components/base/forms/buttons'
17
+ import { FlexGroup } from 'uiSrc/components/base/layout/flex'
16
18
import styles from './styles.module.scss'
17
19
18
20
const ExploreGuides = ( ) => {
@@ -50,13 +52,11 @@ const ExploreGuides = () => {
50
52
</ Text >
51
53
< Spacer size = "xl" />
52
54
{ ! ! data . length && (
53
- < div className = { styles . guides } >
55
+ < FlexGroup gap = "l" wrap justify = "center" className = { styles . guides } >
54
56
{ data . map ( ( { title, tutorialId, icon } ) => (
55
- < div
56
- key = { title }
57
- role = "button"
57
+ < SecondaryButton
58
+ inverted
58
59
tabIndex = { 0 }
59
- onKeyDown = { ( ) => { } }
60
60
onClick = { ( ) => handleLinkClick ( tutorialId ) }
61
61
className = { styles . btn }
62
62
data-testid = { `guide-button-${ tutorialId } ` }
@@ -69,9 +69,9 @@ const ExploreGuides = () => {
69
69
/>
70
70
) }
71
71
{ title }
72
- </ div >
72
+ </ SecondaryButton >
73
73
) ) }
74
- </ div >
74
+ </ FlexGroup >
75
75
) }
76
76
</ div >
77
77
)
Original file line number Diff line number Diff line change 1
1
.guides {
2
- display : flex ;
3
- flex-wrap : wrap ;
4
- justify-content : center ;
5
-
6
- max-width : 480px ;
7
- margin : 0 auto ;
8
- }
9
-
10
- .btn {
11
- margin : 0 6px 12px ;
12
- padding : 4px 16px ;
13
- border : 1px solid var (--externalLinkColor );
14
- background-color : var (--buttonGuideBgColor );
15
-
16
- border-radius : 24px ;
17
- color : var (--externalLinkColor );
18
-
19
- font-size : 12px ;
20
-
21
- display : flex ;
22
- align-items : center ;
23
- justify-content : center ;
24
-
25
- .icon {
26
- color : var (--externalLinkColor );
27
- margin-right : 8px ;
28
- }
2
+ max-width : 414px ;
29
3
}
Original file line number Diff line number Diff line change @@ -11,7 +11,10 @@ import {
11
11
import { sendEventTelemetry , TelemetryEvent } from 'uiSrc/telemetry'
12
12
import { FlexItem , Row } from 'uiSrc/components/base/layout/flex'
13
13
import { Spacer } from 'uiSrc/components/base/layout/spacer'
14
- import { PrimaryButton } from 'uiSrc/components/base/forms/buttons'
14
+ import {
15
+ PrimaryButton ,
16
+ SecondaryButton ,
17
+ } from 'uiSrc/components/base/forms/buttons'
15
18
import { PlayFilledIcon } from 'uiSrc/components/base/icons'
16
19
import { Text } from 'uiSrc/components/base/text'
17
20
import { RiPopover } from 'uiSrc/components/base'
@@ -55,24 +58,21 @@ const LoadSampleData = (props: Props) => {
55
58
panelPaddingSize = "none"
56
59
anchorClassName = { cx ( styles . buttonWrapper , anchorClassName ) }
57
60
button = {
58
- < PrimaryButton
61
+ < SecondaryButton
62
+ filled
59
63
onClick = { ( ) => setIsConfirmationOpen ( true ) }
60
64
className = { styles . loadDataBtn }
61
65
loading = { loading }
62
66
disabled = { loading }
63
67
data-testid = "load-sample-data-btn"
64
68
>
65
69
Load sample data
66
- </ PrimaryButton >
70
+ </ SecondaryButton >
67
71
}
68
72
>
69
73
< Row gap = "m" responsive = { false } style = { { padding : 15 } } >
70
74
< FlexItem >
71
- < RiIcon
72
- size = "m"
73
- type = "ToastDangerIcon"
74
- color = "attention500"
75
- />
75
+ < RiIcon size = "m" type = "ToastDangerIcon" color = "attention500" />
76
76
</ FlexItem >
77
77
< FlexItem >
78
78
< Text variant = "semiBold" > Execute commands in bulk</ Text >
Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
import { useDispatch , useSelector } from 'react-redux'
3
3
import { useHistory } from 'react-router-dom'
4
- import TelescopeImg from 'uiSrc/assets/img/telescope-dark .svg'
4
+ import NoDataImg from 'uiSrc/assets/img/no-data .svg'
5
5
6
6
import { findTutorialPath } from 'uiSrc/utils'
7
7
import {
@@ -22,6 +22,7 @@ import { Spacer } from 'uiSrc/components/base/layout/spacer'
22
22
import { EmptyButton } from 'uiSrc/components/base/forms/buttons'
23
23
import { Title } from 'uiSrc/components/base/text/Title'
24
24
import { RiImage } from 'uiSrc/components/base/display'
25
+ import { Row } from 'uiSrc/components/base/layout/flex'
25
26
import LoadSampleData from '../load-sample-data'
26
27
27
28
import styles from './styles.module.scss'
@@ -61,17 +62,13 @@ const NoKeysFound = (props: Props) => {
61
62
62
63
return (
63
64
< div className = { styles . container } data-testid = "no-result-found-msg" >
64
- < RiImage
65
- className = { styles . img }
66
- src = { TelescopeImg }
67
- alt = "no results"
68
- />
65
+ < RiImage className = { styles . img } src = { NoDataImg } alt = "no results" />
69
66
< Spacer />
70
67
< Title color = "primary" className = { styles . title } size = "S" >
71
68
Let's start working
72
69
</ Title >
73
70
< Spacer />
74
- < div className = { styles . actions } >
71
+ < Row gap = "m" >
75
72
< LoadSampleData onSuccess = { onSuccessLoadData } />
76
73
< EmptyButton
77
74
onClick = { ( ) => onAddKeyPanel ( true ) }
@@ -80,7 +77,7 @@ const NoKeysFound = (props: Props) => {
80
77
>
81
78
+ Add key manually
82
79
</ EmptyButton >
83
- </ div >
80
+ </ Row >
84
81
</ div >
85
82
)
86
83
}
Original file line number Diff line number Diff line change 12
12
font-size : 28px !important ;
13
13
}
14
14
15
- .actions {
16
- display : flex ;
17
- align-items : center ;
18
- justify-content : center ;
19
- }
20
-
21
15
.addKey {
22
16
height : 36px !important ;
23
17
width : auto !important ;
You can’t perform that action at this time.
0 commit comments