From 9997aa0516b8f4da7afed1eb5d789a360f4e7f6e Mon Sep 17 00:00:00 2001 From: krishna2323 Date: Tue, 30 Jul 2024 15:14:37 +0530 Subject: [PATCH] remove redundant code. Signed-off-by: krishna2323 --- .../emptystate__big-vault.svg | 378 ++++++++++++++++++ src/languages/en.ts | 21 - src/languages/es.ts | 21 - .../settings/Wallet/WalletPage/WalletPage.tsx | 5 +- src/styles/index.ts | 7 + 5 files changed, 387 insertions(+), 45 deletions(-) create mode 100644 assets/images/simple-illustrations/emptystate__big-vault.svg diff --git a/assets/images/simple-illustrations/emptystate__big-vault.svg b/assets/images/simple-illustrations/emptystate__big-vault.svg new file mode 100644 index 000000000000..02606e39fafd --- /dev/null +++ b/assets/images/simple-illustrations/emptystate__big-vault.svg @@ -0,0 +1,378 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/languages/en.ts b/src/languages/en.ts index 049c6e35d011..57cdb2690213 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -2740,27 +2740,6 @@ export default { updatePayrollCodeFailureMessage: 'An error occurred while updating the payroll code, please try again.', glCode: 'GL code', updateGLCodeFailureMessage: 'An error occurred while updating the GL code, please try again.', - defaultCategories: { - Advertising: 'Advertising', - Benefits: 'Benefits', - Car: 'Car', - Equipment: 'Equipment', - Fees: 'Fees', - HomeOffice: 'Home Office', - Insurance: 'Insurance', - Interest: 'Interest', - Labor: 'Labor', - Maintenance: 'Maintenance', - Materials: 'Materials', - MealsandEntertainment: 'Meals and Entertainment', - OfficeSupplies: 'Office Supplies', - Other: 'Other', - ProfessionalServices: 'Professional Services', - Rent: 'Rent', - Taxes: 'Taxes', - Travel: 'Travel', - Utilities: 'Utilities', - }, }, moreFeatures: { diff --git a/src/languages/es.ts b/src/languages/es.ts index 45d7b15bed7f..4e0d3ff296fd 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -2792,27 +2792,6 @@ export default { updatePayrollCodeFailureMessage: 'Se produjo un error al actualizar el código de nómina, por favor intente nuevamente.', glCode: 'Código de Libro Mayor', updateGLCodeFailureMessage: 'Se produjo un error al actualizar el código de Libro Mayor. Inténtelo nuevamente.', - defaultCategories: { - Advertising: 'Publicidad', - Benefits: 'Beneficios', - Car: 'Automóvil', - Equipment: 'Equipo', - Fees: 'Honorarios', - HomeOffice: 'Oficina en Casa', - Insurance: 'Seguro', - Interest: 'Intereses', - Labor: 'Trabajo', - Maintenance: 'Mantenimiento', - Materials: 'Materiales', - MealsandEntertainment: 'Comidas y Entretenimiento', - OfficeSupplies: 'Suministros de Oficina', - Other: 'Otros', - ProfessionalServices: 'Servicios Profesionales', - Rent: 'Alquiler', - Taxes: 'Impuestos', - Travel: 'Viajes', - Utilities: 'Servicios Públicos', - }, }, moreFeatures: { spendSection: { diff --git a/src/pages/settings/Wallet/WalletPage/WalletPage.tsx b/src/pages/settings/Wallet/WalletPage/WalletPage.tsx index 92fba90993f1..61a04fa470df 100644 --- a/src/pages/settings/Wallet/WalletPage/WalletPage.tsx +++ b/src/pages/settings/Wallet/WalletPage/WalletPage.tsx @@ -12,7 +12,6 @@ import * as Expensicons from '@components/Icon/Expensicons'; import * as Illustrations from '@components/Icon/Illustrations'; import KYCWall from '@components/KYCWall'; import type {PaymentMethodType, Source} from '@components/KYCWall/types'; -import LottieAnimations from '@components/LottieAnimations'; import MenuItem from '@components/MenuItem'; import MenuItemWithTopDescription from '@components/MenuItemWithTopDescription'; import OfflineWithFeedback from '@components/OfflineWithFeedback'; @@ -374,8 +373,9 @@ function WalletPage({bankAccountList = {}, cardList = {}, fundList = {}, isLoadi isCentralPane titleStyles={styles.accountSettingsSectionTitle} illustration={Illustrations.BigVault} - illustrationStyle={{width: 262, height: 152}} + illustrationStyle={styles.walletIllustration} illustrationBackgroundColor="#411103" + containerStyles={{paddingVertical: 60}} > - {/* */} minHeight: variables.componentSizeNormal, }, + walletIllustration: { + width: 262, + height: 152, + padding: 34, + boxSizing: 'content-box', + }, + walletCardLimit: { color: theme.text, fontSize: variables.fontSizeNormal,