Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const zingoTheme: ThemeType = {
secondaryDisabled: '#b4b4b4',
text: '#ffffff',
zingo: '#b4b4b4',
placeholder: 'rgba(235, 235, 245, 0.3)',
placeholder: '#8D8D8D',
money: '#b4b4b4',
syncing: '#ebff5a', // yellow
notification: '',
Expand Down
2 changes: 1 addition & 1 deletion __mocks__/dataMocks/mockInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ChainNameEnum, CurrencyNameEnum, InfoType } from '../../app/AppState';
import { mockIndexerServer } from './mockServers';

export const mockInfo: InfoType = {
chainName: ChainNameEnum.regtestChainName,
chainName: ChainNameEnum.testChainName,
serverUri: mockIndexerServer.uri,
latestBlock: 2000000,
version: 'server_version',
Expand Down
2 changes: 1 addition & 1 deletion __tests__/ChainTypeToggle.snapshot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('Component ChainTypeToggle - test', () => {
const translate = mockTranslate;
const chain = render(
<ChainTypeToggle
customServerChainName={ChainNameEnum.regtestChainName}
customServerChainName={ChainNameEnum.testChainName}
onPress={onPress}
translate={translate}
/>,
Expand Down
3 changes: 2 additions & 1 deletion __tests__/__snapshots__/About.snapshot.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ exports[`Component About - test About - snapshot 1`] = `
[
{
"fontSize": 22,
"fontWeight": "600",
"fontStyle": "normal",
"fontWeight": "400",
"textAlign": "center",
},
{
Expand Down
42 changes: 21 additions & 21 deletions __tests__/__snapshots__/ChainTypeToggle.snapshot.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ exports[`Component ChainTypeToggle - test ChainTypeToggle - snapshot 1`] = `
style={
{
"alignItems": "center",
"borderColor": "#5a8c5a",
"borderColor": "#18bd18",
"borderRadius": 5,
"borderWidth": 1,
"borderWidth": 2,
"flexDirection": "row",
"justifyContent": "center",
"paddingHorizontal": 5,
Expand All @@ -80,6 +80,23 @@ exports[`Component ChainTypeToggle - test ChainTypeToggle - snapshot 1`] = `
>
text translated
</Text>
<
color="#18bd18"
icon={
{
"icon": [
512,
512,
[],
"f788",
"M96 0C60.7 0 32 28.7 32 64s28.7 64 64 64l48 0 0 32-57 0c-31.6 0-58.5 23.1-63.3 54.4L1.1 364.1C.4 368.8 0 373.6 0 378.4L0 448c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-69.6c0-4.8-.4-9.6-1.1-14.4L488.2 214.4C483.5 183.1 456.6 160 425 160l-217 0 0-32 48 0c35.3 0 64-28.7 64-64S291.3 0 256 0L96 0zm0 48l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16L96 80c-8.8 0-16-7.2-16-16s7.2-16 16-16zM64 424c0-13.3 10.7-24 24-24l336 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L88 448c-13.3 0-24-10.7-24-24zm48-160a24 24 0 1 1 0-48 24 24 0 1 1 0 48zm120-24a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM160 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48zM328 240a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM256 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48zM424 240a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM352 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48z",
],
"iconName": "cash-register",
"prefix": "fas",
}
}
size={14}
/>
</View>
</View>
</View>
Expand Down Expand Up @@ -133,9 +150,9 @@ exports[`Component ChainTypeToggle - test ChainTypeToggle - snapshot 1`] = `
style={
{
"alignItems": "center",
"borderColor": "#18bd18",
"borderColor": "#5a8c5a",
"borderRadius": 5,
"borderWidth": 2,
"borderWidth": 1,
"flexDirection": "row",
"justifyContent": "center",
"paddingHorizontal": 5,
Expand All @@ -153,23 +170,6 @@ exports[`Component ChainTypeToggle - test ChainTypeToggle - snapshot 1`] = `
>
text translated
</Text>
<
color="#18bd18"
icon={
{
"icon": [
512,
512,
[],
"f788",
"M96 0C60.7 0 32 28.7 32 64s28.7 64 64 64l48 0 0 32-57 0c-31.6 0-58.5 23.1-63.3 54.4L1.1 364.1C.4 368.8 0 373.6 0 378.4L0 448c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-69.6c0-4.8-.4-9.6-1.1-14.4L488.2 214.4C483.5 183.1 456.6 160 425 160l-217 0 0-32 48 0c35.3 0 64-28.7 64-64S291.3 0 256 0L96 0zm0 48l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16L96 80c-8.8 0-16-7.2-16-16s7.2-16 16-16zM64 424c0-13.3 10.7-24 24-24l336 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L88 448c-13.3 0-24-10.7-24-24zm48-160a24 24 0 1 1 0-48 24 24 0 1 1 0 48zm120-24a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM160 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48zM328 240a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM256 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48zM424 240a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM352 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48z",
],
"iconName": "cash-register",
"prefix": "fas",
}
}
size={14}
/>
</View>
</View>
</View>
Expand Down
241 changes: 121 additions & 120 deletions __tests__/__snapshots__/Import.snapshot.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -26,143 +26,144 @@ exports[`Component ImportUfvk - test ImportUfvk - snapshot 1`] = `
]
}
>
<RCTScrollView
contentContainerStyle={
<View
style={
{
"flexGrow": 1,
"paddingBottom": NaN,
"paddingHorizontal": 10,
"paddingTop": undefined,
"height": 48,
"justifyContent": "center",
"marginTop": 10,
"paddingHorizontal": 16,
}
}
keyboardShouldPersistTaps="handled"
>
<View>
<View
style={
{
"justifyContent": "center",
"width": 58,
}
}
>
<View
accessibilityState={
{
"busy": undefined,
"checked": undefined,
"disabled": undefined,
"expanded": undefined,
"selected": undefined,
}
}
accessibilityValue={
{
"max": undefined,
"min": undefined,
"now": undefined,
"text": undefined,
}
}
accessible={true}
collapsable={false}
focusable={true}
hitSlop={
{
"bottom": 10,
"left": 10,
"right": 10,
"top": 10,
}
}
onClick={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
{
"alignItems": "center",
"borderColor": "#c3c3c3",
"borderRadius": 30,
"borderWidth": 0.2,
"height": 48,
"justifyContent": "center",
"marginTop": 10,
"paddingHorizontal": 16,
"opacity": 1,
"width": 48,
}
}
>
<View
style={
{
"justifyContent": "center",
"width": 58,
}
}
>
<View
accessibilityState={
{
"busy": undefined,
"checked": undefined,
"disabled": undefined,
"expanded": undefined,
"selected": undefined,
}
}
accessibilityValue={
{
"max": undefined,
"min": undefined,
"now": undefined,
"text": undefined,
}
}
accessible={true}
collapsable={false}
focusable={true}
hitSlop={
{
"bottom": 10,
"left": 10,
"right": 10,
"top": 10,
}
}
onClick={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
{
"alignItems": "center",
"borderColor": "#c3c3c3",
"borderRadius": 30,
"borderWidth": 0.2,
"height": 48,
"justifyContent": "center",
"opacity": 1,
"width": 48,
}
}
>
<
color="#c3c3c3"
icon={
{
"icon": [
320,
512,
[
9001,
],
"f053",
"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z",
],
"iconName": "chevron-left",
"prefix": "fas",
}
}
size={22}
/>
</View>
</View>
<View
pointerEvents="none"
style={
<
color="#c3c3c3"
icon={
{
"alignItems": "center",
"justifyContent": "center",
"left": 74,
"position": "absolute",
"right": 74,
}
}
>
<Text
numberOfLines={1}
style={
[
{
"fontSize": 22,
"fontWeight": "600",
"textAlign": "center",
},
{
"color": "#c3c3c3",
},
]
}
/>
</View>
<View
style={
{
"justifyContent": "center",
"width": 58,
"icon": [
320,
512,
[
9001,
],
"f053",
"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z",
],
"iconName": "chevron-left",
"prefix": "fas",
}
}
size={22}
/>
</View>
</View>
<View
pointerEvents="none"
style={
{
"alignItems": "center",
"justifyContent": "center",
"left": 74,
"position": "absolute",
"right": 74,
}
}
>
<Text
numberOfLines={1}
style={
[
{
"fontSize": 22,
"fontStyle": "normal",
"fontWeight": "400",
"textAlign": "center",
},
{
"color": "#c3c3c3",
},
]
}
/>
</View>
<View
style={
{
"justifyContent": "center",
"width": 58,
}
}
/>
</View>
<RCTScrollView
contentContainerStyle={
{
"flexGrow": 1,
"paddingBottom": NaN,
"paddingHorizontal": 10,
"paddingTop": undefined,
}
}
keyboardShouldPersistTaps="handled"
>
<View>
<View
style={
{
Expand Down
5 changes: 3 additions & 2 deletions __tests__/__snapshots__/Info.snapshot.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ exports[`Component Info - test Info - snapshot 1`] = `
[
{
"fontSize": 22,
"fontWeight": "600",
"fontStyle": "normal",
"fontWeight": "400",
"textAlign": "center",
},
{
Expand Down Expand Up @@ -428,7 +429,7 @@ exports[`Component Info - test Info - snapshot 1`] = `
}
}
>
Regtest
Testnet
</Text>
</View>
</View>
Expand Down
Loading
Loading