From a862ee9ccf6f737e1e869dd555a0438b7587d87e Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Sat, 16 Dec 2023 19:37:20 +0200 Subject: [PATCH] feat: localize the preferences menu --- packages/webapp/src/constants/preferencesMenu.tsx | 8 ++++---- .../Estimates/PreferencesEstimatesFormPage.tsx | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/webapp/src/constants/preferencesMenu.tsx b/packages/webapp/src/constants/preferencesMenu.tsx index 2a7377bf0..0925532ff 100644 --- a/packages/webapp/src/constants/preferencesMenu.tsx +++ b/packages/webapp/src/constants/preferencesMenu.tsx @@ -13,19 +13,19 @@ export default [ href: '/preferences/users', }, { - text: 'Estimates', + text: , href: '/preferences/estimates', }, { - text: 'Invoices', + text: , href: '/preferences/invoices', }, { - text: 'Receipts', + text: , href: '/preferences/receipts', }, { - text: 'Credit Notes', + text: , href: '/preferences/credit-notes', }, { diff --git a/packages/webapp/src/containers/Preferences/Estimates/PreferencesEstimatesFormPage.tsx b/packages/webapp/src/containers/Preferences/Estimates/PreferencesEstimatesFormPage.tsx index f5241f20a..e4b05a4c8 100644 --- a/packages/webapp/src/containers/Preferences/Estimates/PreferencesEstimatesFormPage.tsx +++ b/packages/webapp/src/containers/Preferences/Estimates/PreferencesEstimatesFormPage.tsx @@ -9,6 +9,7 @@ import { AppToaster } from '@/components'; import { PreferencesEstimatesFormSchema } from './PreferencesEstimatesForm.schema'; import { PreferencesEstimatesForm } from './PreferencesEstimatesForm'; import withDashboardActions from '@/containers/Dashboard/withDashboardActions'; +import withSettings from '@/containers/Settings/withSettings'; import { transferObjectOptionsToArray } from '../Accountant/utils'; import { compose, transformToForm, transfromToSnakeCase } from '@/utils';