14
14
* limitations under the License.
15
15
*/
16
16
17
+ import { ComponentSizeType } from '@Shared/constants'
17
18
import GettingToast from '../../../Assets/Img/lifebuoy.png'
18
19
import updateLoginCount from './service'
19
20
import { LOGIN_COUNT , MAX_LOGIN_COUNT , POSTHOG_EVENT_ONBOARDING } from '../../../Common'
20
21
import { handlePostHogEventUpdate , setActionWithExpiry } from '../Header/utils'
21
22
import { GettingStartedType } from './types'
22
23
import './gettingStarted.scss'
24
+ import { Button , ButtonStyleType , ButtonVariantType } from '../Button'
23
25
24
26
const GettingStartedCard = ( { className, hideGettingStartedCard } : GettingStartedType ) => {
25
27
const onClickedOkay = async ( e ) => {
@@ -41,27 +43,27 @@ const GettingStartedCard = ({ className, hideGettingStartedCard }: GettingStarte
41
43
return (
42
44
< div className = "getting_tippy__position" >
43
45
< div className = "arrow-up" />
44
- < div className = { `getting-started-card cn-0 p-20 br-8 fs-13 ${ className } ` } >
46
+ < div className = { `getting-started-card cn-0 p-20 br-8 fs-13 bg__overlay dc__border ${ className } ` } >
45
47
< img className = "mb-12 icon-dim-32" src = { GettingToast } alt = "getting started icon" />
46
- < div className = "flex column left fw-6" > Getting started</ div >
47
- < div > You can always access the Getting Started guide from here.</ div >
48
- < div className = "mt-12 lh-18" >
49
- < button
48
+ < div className = "flex column left fw-6 cn-7" > Getting started</ div >
49
+ < div className = "cn-7" > You can always access the Getting Started guide from here.</ div >
50
+ < div className = "mt-12 lh-18 flex left dc__gap-12" >
51
+ < Button
52
+ text = "Okay"
53
+ size = { ComponentSizeType . xs }
54
+ dataTestId = "getting-started-okay"
50
55
onClick = { onClickedOkay }
51
- type = "button"
52
- className = "bw-0 cn-9 fw-6 br-4 mr-12 pt-4 pb-4 pl-8 pr-8 pl-8 pr-8"
53
56
data-posthog = { POSTHOG_EVENT_ONBOARDING . TOOLTIP_OKAY }
54
- >
55
- Okay
56
- </ button >
57
- < button
58
- className = "br-4 token__dont-show en-0 bw-1 dc__transparent pl-8 pr-8 pt-3 pb-3"
59
- type = "button"
60
- data-posthog = { POSTHOG_EVENT_ONBOARDING . TOOLTIP_DONT_SHOW_AGAIN }
57
+ />
58
+ < Button
59
+ text = "Don't show again"
60
+ size = { ComponentSizeType . xs }
61
+ dataTestId = "getting-started-don't-show-again"
61
62
onClick = { onClickedDontShowAgain }
62
- >
63
- Don't show again
64
- </ button >
63
+ style = { ButtonStyleType . neutral }
64
+ data-posthog = { POSTHOG_EVENT_ONBOARDING . TOOLTIP_DONT_SHOW_AGAIN }
65
+ variant = { ButtonVariantType . secondary }
66
+ />
65
67
</ div >
66
68
</ div >
67
69
</ div >
0 commit comments