-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* watchasset erc20 basic support * render watchasset modal * handle watchasset call * handle watchasset rejection * handle watched asset images * missing strings * snapshots * bump gaba * fix styles * snapshots * styles update * pin dep * install
- Loading branch information
1 parent
6f64728
commit b3857df
Showing
13 changed files
with
572 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
212 changes: 212 additions & 0 deletions
212
app/components/UI/WatchAssetRequest/__snapshots__/index.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,212 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`WatchAssetRequest should render correctly 1`] = ` | ||
<View | ||
style={ | ||
Object { | ||
"backgroundColor": "#FFFFFF", | ||
"borderTopLeftRadius": 10, | ||
"borderTopRightRadius": 10, | ||
"minHeight": "50%", | ||
"paddingBottom": 20, | ||
} | ||
} | ||
> | ||
<View> | ||
<Text | ||
style={ | ||
Object { | ||
"color": "#000000", | ||
"fontFamily": "Roboto", | ||
"fontSize": 18, | ||
"fontWeight": "600", | ||
"marginHorizontal": 20, | ||
"marginVertical": 12, | ||
"textAlign": "center", | ||
} | ||
} | ||
> | ||
Add Suggested Token | ||
</Text> | ||
</View> | ||
<ActionView | ||
cancelTestID="request-signature-cancel-button" | ||
cancelText="CANCEL" | ||
confirmButtonMode="normal" | ||
confirmTestID="request-signature-confirm-button" | ||
confirmText="ADD TOKEN" | ||
confirmed={false} | ||
onConfirmPress={[Function]} | ||
showCancelButton={true} | ||
showConfirmButton={true} | ||
> | ||
<View | ||
style={ | ||
Object { | ||
"alignItems": "center", | ||
"borderTopColor": "#d2d8dd", | ||
"borderTopWidth": 1, | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
Object { | ||
"flexDirection": "row", | ||
"margin": 20, | ||
} | ||
} | ||
> | ||
<Text | ||
style={ | ||
Object { | ||
"fontFamily": "Roboto", | ||
"fontSize": 16, | ||
"fontWeight": "400", | ||
} | ||
} | ||
> | ||
Would you like to add this token? | ||
</Text> | ||
</View> | ||
<View | ||
style={ | ||
Object { | ||
"alignItems": "flex-start", | ||
"flex": 1, | ||
"flexDirection": "row", | ||
"marginHorizontal": 40, | ||
"marginVertical": 30, | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
Object { | ||
"flex": 1, | ||
"flexDirection": "column", | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
Object { | ||
"alignItems": "center", | ||
} | ||
} | ||
> | ||
<Text | ||
style={ | ||
Object { | ||
"fontFamily": "Roboto", | ||
"fontWeight": "600", | ||
} | ||
} | ||
> | ||
Token | ||
</Text> | ||
</View> | ||
<View | ||
style={ | ||
Object { | ||
"alignItems": "center", | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
Object { | ||
"flexDirection": "row", | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
Object { | ||
"paddingVertical": 10, | ||
} | ||
} | ||
> | ||
<TokenElement | ||
asset={ | ||
Object { | ||
"address": "0x2", | ||
"decimals": 0, | ||
"logo": undefined, | ||
"symbol": "TKN", | ||
} | ||
} | ||
logoDefined={true} | ||
/> | ||
</View> | ||
<Text | ||
style={ | ||
Object { | ||
"fontFamily": "Roboto", | ||
"fontSize": 16, | ||
"fontWeight": "400", | ||
"paddingHorizontal": 10, | ||
"paddingTop": 25, | ||
} | ||
} | ||
> | ||
TKN | ||
</Text> | ||
</View> | ||
</View> | ||
</View> | ||
<View | ||
style={ | ||
Object { | ||
"flex": 1, | ||
"flexDirection": "column", | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
Object { | ||
"alignItems": "center", | ||
} | ||
} | ||
> | ||
<Text | ||
style={ | ||
Object { | ||
"fontFamily": "Roboto", | ||
"fontWeight": "600", | ||
} | ||
} | ||
> | ||
Balance | ||
</Text> | ||
</View> | ||
<View | ||
style={ | ||
Object { | ||
"alignItems": "center", | ||
} | ||
} | ||
> | ||
<Text | ||
style={ | ||
Object { | ||
"fontFamily": "Roboto", | ||
"fontSize": 16, | ||
"fontWeight": "400", | ||
"paddingHorizontal": 10, | ||
"paddingTop": 25, | ||
} | ||
} | ||
> | ||
0 | ||
TKN | ||
</Text> | ||
</View> | ||
</View> | ||
</View> | ||
</View> | ||
</ActionView> | ||
</View> | ||
`; |
Oops, something went wrong.