@swan-io/shared-business 13.0.0 → 13.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swan-io/shared-business",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.2",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": "^22.12.0"
|
|
6
6
|
},
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@swan-io/lake": "13.0.
|
|
28
|
+
"@swan-io/lake": "13.0.2"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@formatjs/intl": "^3.1.6",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"react-atomic-state": "^2.1.0",
|
|
40
40
|
"react-dom": "^19.1.1",
|
|
41
41
|
"react-dropzone": "^14.3.8",
|
|
42
|
-
"react-native-web": "^0.
|
|
42
|
+
"react-native-web": "^0.20.0",
|
|
43
43
|
"rifm": "^0.12.1",
|
|
44
44
|
"ts-pattern": "^5.8.0",
|
|
45
45
|
"uuid": "^11.1.0"
|
|
@@ -50,6 +50,6 @@
|
|
|
50
50
|
"@types/react-dom": "^19.1.7",
|
|
51
51
|
"@types/react-native": "^0.72.8",
|
|
52
52
|
"type-fest": "^4.41.0",
|
|
53
|
-
"@swan-io/lake": "13.0.
|
|
53
|
+
"@swan-io/lake": "13.0.2"
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StyleProp, ViewStyle } from "react-native";
|
|
2
2
|
import { CountryCCA3 } from "../constants/countries";
|
|
3
|
-
export type TransactionType = "
|
|
3
|
+
export type TransactionType = "SepaCreditTransfer" | "Fees" | "SepaDirectDebit" | "Card";
|
|
4
4
|
type AddressInfo = {
|
|
5
5
|
addressLine1: string;
|
|
6
6
|
addressLine2?: string;
|
|
@@ -102,11 +102,10 @@ const Title = ({ text, align = "left", style, }) => (_jsx(Text, { style: [
|
|
|
102
102
|
], children: text }));
|
|
103
103
|
const translateTransaction = (transaction) => {
|
|
104
104
|
return match(transaction)
|
|
105
|
-
.with("
|
|
106
|
-
.with("
|
|
107
|
-
.with("
|
|
108
|
-
.with("
|
|
109
|
-
.with("SepaDirectDebitIn", "SepaDirectDebitInReturn", "SepaDirectDebitInReversal", "SepaDirectDebitOut", "SepaDirectDebitOutReturn", "SepaDirectDebitOutReversal", "InternalDirectDebitIn", "InternalDirectDebitInReturn", "InternalDirectDebitOut", "InternalDirectDebitOutReturn", () => t("accountStatement.directDebit"))
|
|
105
|
+
.with("Card", () => t("accountStatement.card"))
|
|
106
|
+
.with("Fees", () => t("accountStatement.fees"))
|
|
107
|
+
.with("SepaCreditTransfer", () => t("accountStatement.creditTransfer"))
|
|
108
|
+
.with("SepaDirectDebit", () => t("accountStatement.directDebit"))
|
|
110
109
|
.exhaustive();
|
|
111
110
|
};
|
|
112
111
|
const logoStyle = {
|