-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/swaps quotes view #2060
Changes from 79 commits
17ff273
812383c
90c83c7
4b8f053
55105bf
a6194f9
2d861d1
1dd566e
bf047df
103cd51
6b09c1e
08b25a2
258535f
405b470
8664890
511bd94
7485db9
33d0c45
74b1241
7e9b41e
a36dd9e
5fd6f15
4d3822f
fd0cbd9
a5949c9
62cc4d9
13c476f
433053a
7177108
87238c7
04070b2
c769675
025bbab
1f56ceb
7bc81e5
34859d6
8b1f057
f7a3820
17b579e
44f1f0f
87e57cc
4d3712e
2aebafc
60bcd80
e01a883
62f54cd
130a081
0d3848d
8e1a316
b36c1f8
0b33f32
c92680c
c1e434f
e1444a2
2ea60ab
e2b4250
2970ec6
285322d
e8dafe0
654412d
3ff5a9c
d4d470d
fa9876b
3e4119a
fee85ef
8a77664
63262a9
7f4a72b
8730a10
6df1ee4
e319764
9b9067f
836f495
27bb1bc
40afcaf
ac88c7e
b79c7e3
31b74f4
30e5f40
746140a
4d66436
03bbfa7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -888,7 +888,7 @@ export function getTransakWebviewNavbar(navigation) { | |
} | ||
|
||
export function getSwapsAmountNavbar(navigation) { | ||
const title = navigation.getParam('title', 'Swaps'); | ||
const title = navigation.getParam('title', 'Swap'); | ||
const rightAction = navigation.dismiss; | ||
|
||
return { | ||
|
@@ -902,3 +902,29 @@ export function getSwapsAmountNavbar(navigation) { | |
) | ||
}; | ||
} | ||
export function getSwapsQuotesNavbar(navigation) { | ||
const title = navigation.getParam('title', 'Swap'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is a nit, so feel free to disregard, but There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Very good question, I did not elaborate here because it was too early then, but I think know is a great time to ask: is |
||
const rightAction = navigation.dismiss; | ||
const leftAction = navigation.getParam('leftAction', strings('navigation.back')); | ||
|
||
return { | ||
headerTitle: <NavbarTitle title={title} disableNetwork translate={false} />, | ||
headerLeft: Device.isAndroid() ? ( | ||
// eslint-disable-next-line react/jsx-no-bind | ||
<TouchableOpacity onPress={() => navigation.pop()} style={styles.backButton}> | ||
<IonicIcon name={'md-arrow-back'} size={24} style={styles.backIcon} /> | ||
</TouchableOpacity> | ||
) : ( | ||
// eslint-disable-next-line react/jsx-no-bind | ||
<TouchableOpacity onPress={() => navigation.pop()} style={styles.closeButton}> | ||
<Text style={styles.closeButtonText}>{leftAction}</Text> | ||
</TouchableOpacity> | ||
), | ||
headerRight: ( | ||
// eslint-disable-next-line react/jsx-no-bind | ||
<TouchableOpacity onPress={rightAction} style={styles.closeButton}> | ||
<Text style={styles.closeButtonText}>{strings('navigation.cancel')}</Text> | ||
</TouchableOpacity> | ||
) | ||
}; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,182 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`SliderButton should render correctly 1`] = ` | ||
<View | ||
onLayout={[Function]} | ||
style={ | ||
Array [ | ||
Object { | ||
"elevation": 0, | ||
"shadowColor": "#75C4FD", | ||
"shadowOffset": Object { | ||
"height": 3, | ||
"width": 0, | ||
}, | ||
"shadowOpacity": 0.5, | ||
"shadowRadius": 8, | ||
}, | ||
undefined, | ||
] | ||
} | ||
> | ||
<View | ||
style={ | ||
Object { | ||
"alignItems": "center", | ||
"backgroundColor": "#0074C8", | ||
"borderRadius": 60, | ||
"height": 60, | ||
"justifyContent": "center", | ||
"overflow": "hidden", | ||
"position": "relative", | ||
"width": "100%", | ||
} | ||
} | ||
> | ||
<Image | ||
resizeMode="stretch" | ||
source={ | ||
Object { | ||
"testUri": "../../../app/components/UI/SliderButton/assets/slider_button_gradient.png", | ||
} | ||
} | ||
style={ | ||
Array [ | ||
Object { | ||
"height": "100%", | ||
"position": "absolute", | ||
"width": "100%", | ||
}, | ||
false, | ||
] | ||
} | ||
/> | ||
<ForwardRef(AnimatedComponentWrapper) | ||
resizeMode="contain" | ||
source={ | ||
Object { | ||
"testUri": "../../../app/components/UI/SliderButton/assets/slider_button_shine.png", | ||
} | ||
} | ||
style={ | ||
Array [ | ||
Object { | ||
"height": "200%", | ||
"left": 0, | ||
"position": "absolute", | ||
}, | ||
Object { | ||
"opacity": 1, | ||
"transform": Array [ | ||
Object { | ||
"translateX": -142, | ||
}, | ||
], | ||
}, | ||
] | ||
} | ||
/> | ||
<ForwardRef(AnimatedComponentWrapper) | ||
style={ | ||
Object { | ||
"opacity": 1, | ||
} | ||
} | ||
> | ||
<Text | ||
style={ | ||
Object { | ||
"color": "#FFFFFF", | ||
"fontFamily": "EuclidCircularB-Regular", | ||
"fontSize": 16, | ||
"fontWeight": "400", | ||
} | ||
} | ||
> | ||
Incomplete Text | ||
</Text> | ||
</ForwardRef(AnimatedComponentWrapper)> | ||
</View> | ||
<ForwardRef(AnimatedComponentWrapper) | ||
style={ | ||
Array [ | ||
Object { | ||
"borderRadius": 60, | ||
"height": "100%", | ||
"overflow": "hidden", | ||
"position": "absolute", | ||
}, | ||
Object { | ||
"backgroundColor": "rgba(2, 96, 164, 1)", | ||
"width": 60, | ||
}, | ||
] | ||
} | ||
> | ||
<View | ||
style={ | ||
Array [ | ||
Object { | ||
"alignItems": "center", | ||
"height": "100%", | ||
"justifyContent": "center", | ||
"position": "absolute", | ||
"width": "100%", | ||
}, | ||
Object { | ||
"width": 0, | ||
}, | ||
] | ||
} | ||
> | ||
<Text | ||
style={ | ||
Object { | ||
"color": "#FFFFFF", | ||
"fontFamily": "EuclidCircularB-Regular", | ||
"fontSize": 16, | ||
"fontWeight": "400", | ||
} | ||
} | ||
> | ||
Complete Text | ||
</Text> | ||
</View> | ||
</ForwardRef(AnimatedComponentWrapper)> | ||
<ForwardRef(AnimatedComponentWrapper) | ||
onMoveShouldSetResponder={[Function]} | ||
onMoveShouldSetResponderCapture={[Function]} | ||
onResponderEnd={[Function]} | ||
onResponderGrant={[Function]} | ||
onResponderMove={[Function]} | ||
onResponderReject={[Function]} | ||
onResponderRelease={[Function]} | ||
onResponderStart={[Function]} | ||
onResponderTerminate={[Function]} | ||
onResponderTerminationRequest={[Function]} | ||
onStartShouldSetResponder={[Function]} | ||
onStartShouldSetResponderCapture={[Function]} | ||
style={ | ||
Array [ | ||
Object { | ||
"backgroundColor": "#FFFFFF", | ||
"borderColor": "#0260A4", | ||
"borderRadius": 60, | ||
"borderWidth": 9.6, | ||
"height": 60, | ||
"position": "absolute", | ||
"width": 60, | ||
}, | ||
Object { | ||
"opacity": 1, | ||
"transform": Array [ | ||
Object { | ||
"translateX": 0, | ||
}, | ||
], | ||
}, | ||
] | ||
} | ||
/> | ||
</View> | ||
`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this is ready for
develop
do we still want these?