1
1
import React from 'react' ;
2
- import { View } from 'react-native' ;
2
+ import { Linking , View } from 'react-native' ;
3
3
import type { FeatureListItem } from '@components/FeatureList' ;
4
4
import FeatureList from '@components/FeatureList' ;
5
5
import * as Illustrations from '@components/Icon/Illustrations' ;
@@ -10,6 +10,7 @@ import useThemeStyles from '@hooks/useThemeStyles';
10
10
import useWindowDimensions from '@hooks/useWindowDimensions' ;
11
11
import Navigation from '@libs/Navigation/Navigation' ;
12
12
import colors from '@styles/theme/colors' ;
13
+ import CONST from '@src/CONST' ;
13
14
import ROUTES from '@src/ROUTES' ;
14
15
import getTripIllustrationStyle from './getTripIllustrationStyle' ;
15
16
@@ -30,6 +31,10 @@ function ManageTrips() {
30
31
const { translate} = useLocalize ( ) ;
31
32
const illustrationStyle = getTripIllustrationStyle ( ) ;
32
33
34
+ const navigateToBookTravelDemo = ( ) => {
35
+ Linking . openURL ( CONST . BOOK_TRAVEL_DEMO_URL ) ;
36
+ } ;
37
+
33
38
return (
34
39
< ScrollView contentContainerStyle = { styles . pt3 } >
35
40
< View style = { [ styles . flex1 , isSmallScreenWidth ? styles . workspaceSectionMobile : styles . workspaceSection ] } >
@@ -42,6 +47,9 @@ function ManageTrips() {
42
47
onCtaPress = { ( ) => {
43
48
Navigation . navigate ( ROUTES . TRAVEL_TCS ) ;
44
49
} }
50
+ secondaryButtonText = { translate ( 'travel.bookDemo' ) }
51
+ secondaryButtonAccessibilityLabel = { translate ( 'travel.bookDemo' ) }
52
+ onSecondaryButtonPress = { navigateToBookTravelDemo }
45
53
illustration = { LottieAnimations . Plane }
46
54
illustrationStyle = { illustrationStyle }
47
55
illustrationBackgroundColor = { colors . blue600 }
0 commit comments