Skip to content

Commit

Permalink
Add Skip button to onboarding (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszantas authored Jul 18, 2022
1 parent d988880 commit e33b36a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useState, useEffect, useRef } from 'react'
import { hideSplashscreen } from '../../splashscreen'
import { isDockerInstalled } from '../../commands'

// import Button from '../../components/Button'
import Button from '../../components/Button'
import TBotPrompt from '../../components/TBot/TBotPrompt'
import { TBotMessage } from '../../components/TBot/TBotPrompt/types'
import {
Expand All @@ -16,12 +16,14 @@ import {
import {
setExpertSwitchDisabled,
setExpertView,
// setOnboardingComplete,
setOnboardingComplete,
} from '../../store/app'
import { selectOnboardingCheckpoint } from '../../store/app/selectors'
import { OnboardingCheckpoints } from '../../store/app/types'
import { useAppDispatch, useAppSelector } from '../../store/hooks'
import t from '../../locales'
import { StyledOnboardingContainer } from './styles'
import Text from '../../components/Text'

const OnboardingContainer = () => {
const dispatch = useAppDispatch()
Expand Down Expand Up @@ -177,16 +179,17 @@ const OnboardingContainer = () => {

return (
<StyledOnboardingContainer>
{/* <Button
<Button
variant='secondary'
onClick={() => dispatch(setOnboardingComplete(true))}
style={{
position: 'absolute',
bottom: 40,
left: 40,
}}
>
EXIT TO HOME
</Button>*/}
<Text type='smallHeavy'>{t.onboarding.actions.skipOnboarding}</Text>
</Button>
<TBotPrompt
open={true}
messages={messages}
Expand Down
1 change: 1 addition & 0 deletions applications/launchpad/gui-react/src/locales/onboarding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
const translations = {
actions: {
skipChatting: 'Skip Chatting',
skipOnboarding: 'Skip',
},
status: {
processing: 'processing',
Expand Down

0 comments on commit e33b36a

Please sign in to comment.