Skip to content

Commit

Permalink
feat: added inheritance sync plans dialog ui (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
irshadjsr21 authored Jul 24, 2024
1 parent 3dc1606 commit 2befa90
Show file tree
Hide file tree
Showing 28 changed files with 1,089 additions and 262 deletions.
31 changes: 30 additions & 1 deletion packages/cysync-core-constants/src/i18n/lang/ar-AE.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"help": "مساعدة",
"back": "عودة",
"allWallets": "جميع Wallets",
"labels": {
"email": "Email",
"required": "Required"
},
"buttons": {
"addWallet": "إضافة Wallets",
"addAccount": "إضافة حساب",
Expand Down Expand Up @@ -40,7 +44,8 @@
"showQRCode": "إظهار رمز الاستجابة السريعة",
"editAccount": "تحرير الحساب",
"submit": "إرسال",
"showMore": "عرض المزيد"
"showMore": "عرض المزيد",
"resendOTP": "Resend OTP"
},
"tooltips": {
"downloadCsv": "تصدير كملف CSV"
Expand Down Expand Up @@ -1454,6 +1459,16 @@
"info": "هذا هو ${derivationSchemeName} xpub. عند استيراده إلى محفظة تابعة لجهة خارجية، اختر نفس وضع الاستنتاج",
"advanced": "متقدم"
}
},
"inheritanceSyncPlans": {
"enterEmail": {
"title": "Please enter your primary email associated with this plan",
"subTitle": "An OTP will be sent to this email",
"button": "Verify"
},
"verifyEmail": {
"title": "OTP verification"
}
}
},
"toggle": {
Expand Down Expand Up @@ -1556,5 +1571,19 @@
}
}
}
},
"otp": {
"title": "Enter OTP",
"wrongOtpTitle": "Wrong OTP",
"successRedirectTitle": "Please wait while we redirect you...",
"triesRemaining": "${retries} tries remaining ${timeout}..",
"infoTexts": [
"An email has been sent to **${email}**",
"Please enter the code received on the email"
],
"noRetries": {
"title": "You have 0 retries remaining",
"subTitle": "Please exit the flow and restart"
}
}
}
31 changes: 30 additions & 1 deletion packages/cysync-core-constants/src/i18n/lang/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"help": "Help",
"back": "Zurück",
"allWallets": "Alle Wallets",
"labels": {
"email": "Email",
"required": "Required"
},
"buttons": {
"addWallet": "Wallet hinzufügen",
"addAccount": "Konto hinzufügen",
Expand Down Expand Up @@ -40,7 +44,8 @@
"showQRCode": "QR-Code anzeigen",
"editAccount": "Konto bearbeiten",
"submit": "Absenden",
"showMore": "Mehr anzeigen"
"showMore": "Mehr anzeigen",
"resendOTP": "Resend OTP"
},
"tooltips": {
"downloadCsv": "Als CSV exportieren"
Expand Down Expand Up @@ -1459,6 +1464,16 @@
"info": "Dies ist ein ${derivationSchemeName} xpub. Wenn Sie es in eine Drittanbieter-Wallet importieren, wählen Sie denselben Derivationsmodus",
"advanced": "Erweitert"
}
},
"inheritanceSyncPlans": {
"enterEmail": {
"title": "Please enter your primary email associated with this plan",
"subTitle": "An OTP will be sent to this email",
"button": "Verify"
},
"verifyEmail": {
"title": "OTP verification"
}
}
},
"toggle": {
Expand Down Expand Up @@ -1561,5 +1576,19 @@
}
}
}
},
"otp": {
"title": "Enter OTP",
"wrongOtpTitle": "Wrong OTP",
"successRedirectTitle": "Please wait while we redirect you...",
"triesRemaining": "${retries} tries remaining ${timeout}..",
"infoTexts": [
"An email has been sent to **${email}**",
"Please enter the code received on the email"
],
"noRetries": {
"title": "You have 0 retries remaining",
"subTitle": "Please exit the flow and restart"
}
}
}
31 changes: 30 additions & 1 deletion packages/cysync-core-constants/src/i18n/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"help": "Help",
"back": "Back",
"allWallets": "All Wallets",
"labels": {
"email": "Email",
"required": "Required"
},
"buttons": {
"addWallet": "Add Wallet",
"addAccount": "Add Account",
Expand Down Expand Up @@ -40,7 +44,8 @@
"showQRCode": "Show QR Code",
"editAccount": "Edit Account",
"submit": "Submit",
"showMore": "Show more"
"showMore": "Show more",
"resendOTP": "Resend OTP"
},
"tooltips": {
"downloadCsv": "Export as CSV"
Expand Down Expand Up @@ -1459,6 +1464,16 @@
"info": "This is a ${derivationSchemeName} xpub. When importing it into a third-party wallet, choose the same derivation mode",
"advanced": "Advanced"
}
},
"inheritanceSyncPlans": {
"enterEmail": {
"title": "Please enter your primary email associated with this plan",
"subTitle": "An OTP will be sent to this email",
"button": "Verify"
},
"verifyEmail": {
"title": "OTP verification"
}
}
},
"toggle": {
Expand Down Expand Up @@ -1561,5 +1576,19 @@
}
}
}
},
"otp": {
"title": "Enter OTP",
"wrongOtpTitle": "Wrong OTP",
"successRedirectTitle": "Please wait while we redirect you...",
"triesRemaining": "${retries} tries remaining ${timeout}..",
"infoTexts": [
"An email has been sent to **${email}**",
"Please enter the code received on the email"
],
"noRetries": {
"title": "You have 0 retries remaining",
"subTitle": "Please exit the flow and restart"
}
}
}
31 changes: 30 additions & 1 deletion packages/cysync-core-constants/src/i18n/lang/id-ID.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"help": "Help",
"back": "Kembali",
"allWallets": "Semua Wallets",
"labels": {
"email": "Email",
"required": "Required"
},
"buttons": {
"addWallet": "Tambah Dompet",
"addAccount": "Tambah Akun",
Expand Down Expand Up @@ -40,7 +44,8 @@
"showQRCode": "Tampilkan Kode QR",
"editAccount": "Sunting Akun",
"submit": "Kirim",
"showMore": "Tampilkan lebih banyak"
"showMore": "Tampilkan lebih banyak",
"resendOTP": "Resend OTP"
},
"tooltips": {
"downloadCsv": "Ekspor sebagai CSV"
Expand Down Expand Up @@ -1459,6 +1464,16 @@
"info": "Ini adalah ${derivationSchemeName} xpub. Saat mengimpor ke dalam dompet pihak ketiga, pilih mode derivasi yang sama",
"advanced": "Lanjutan"
}
},
"inheritanceSyncPlans": {
"enterEmail": {
"title": "Please enter your primary email associated with this plan",
"subTitle": "An OTP will be sent to this email",
"button": "Verify"
},
"verifyEmail": {
"title": "OTP verification"
}
}
},
"toggle": {
Expand Down Expand Up @@ -1561,5 +1576,19 @@
}
}
}
},
"otp": {
"title": "Enter OTP",
"wrongOtpTitle": "Wrong OTP",
"successRedirectTitle": "Please wait while we redirect you...",
"triesRemaining": "${retries} tries remaining ${timeout}..",
"infoTexts": [
"An email has been sent to **${email}**",
"Please enter the code received on the email"
],
"noRetries": {
"title": "You have 0 retries remaining",
"subTitle": "Please exit the flow and restart"
}
}
}
31 changes: 30 additions & 1 deletion packages/cysync-core-constants/src/i18n/lang/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"help": "Help",
"back": "返回",
"allWallets": "所有 Wallets",
"labels": {
"email": "Email",
"required": "Required"
},
"buttons": {
"addWallet": "添加 Wallet",
"addAccount": "添加账户",
Expand Down Expand Up @@ -40,7 +44,8 @@
"showQRCode": "显示二维码",
"editAccount": "编辑账户",
"submit": "提交",
"showMore": "显示更多"
"showMore": "显示更多",
"resendOTP": "Resend OTP"
},
"tooltips": {
"downloadCsv": "导出为CSV"
Expand Down Expand Up @@ -1434,6 +1439,16 @@
"info": "这是一个 ${derivationSchemeName} xpub。将其导入第三方钱包时,请选择相同的派生模式",
"advanced": "高级"
}
},
"inheritanceSyncPlans": {
"enterEmail": {
"title": "Please enter your primary email associated with this plan",
"subTitle": "An OTP will be sent to this email",
"button": "Verify"
},
"verifyEmail": {
"title": "OTP verification"
}
}
},
"toggle": {
Expand Down Expand Up @@ -1536,5 +1551,19 @@
}
}
}
},
"otp": {
"title": "Enter OTP",
"wrongOtpTitle": "Wrong OTP",
"successRedirectTitle": "Please wait while we redirect you...",
"triesRemaining": "${retries} tries remaining ${timeout}..",
"infoTexts": [
"An email has been sent to **${email}**",
"Please enter the code received on the email"
],
"noRetries": {
"title": "You have 0 retries remaining",
"subTitle": "Please exit the flow and restart"
}
}
}
30 changes: 30 additions & 0 deletions packages/cysync-core-constants/src/i18n/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export interface LanguageStrings {
help: string;
back: string;
allWallets: string;
labels: LangLabels;
buttons: LangButtons;
tooltips: LangTooltips;
deviceAuthentication: LangDeviceAuthentication;
Expand Down Expand Up @@ -35,6 +36,12 @@ export interface LanguageStrings {
toggle: LangToggle;
snackbar: LangSnackbar;
settings: LangSettings;
otp: LangOTP;
}

interface LangLabels {
email: string;
required: string;
}

interface LangButtons {
Expand Down Expand Up @@ -75,6 +82,7 @@ interface LangButtons {
editAccount: string;
submit: string;
showMore: string;
resendOTP: string;
}

interface LangTooltips {
Expand Down Expand Up @@ -731,6 +739,16 @@ interface LangDialogs {
advanced: string;
};
};
inheritanceSyncPlans: {
enterEmail: {
title: string;
subTitle: string;
button: string;
};
verifyEmail: {
title: string;
};
};
}

interface LangToggle {
Expand Down Expand Up @@ -785,3 +803,15 @@ interface LangSettings {
};
};
}

interface LangOTP {
title: string;
wrongOtpTitle: string;
successRedirectTitle: string;
triesRemaining: string;
infoTexts: string[];
noRetries: {
title: string;
subTitle: string;
};
}
3 changes: 3 additions & 0 deletions packages/cysync-core/src/actions/dialog/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,6 @@ export const openBetaNotificationDialog = () =>

export const openEditAccountDialog = (props?: EditAccountDialogProps) =>
openDialog({ name: 'editAccount', data: props });

export const openInheritanceSyncPlansDialog = () =>
openDialog({ name: 'inheritanceSyncPlans', data: undefined });
Loading

0 comments on commit 2befa90

Please sign in to comment.