feat: wip default message to sales transactions.

This commit is contained in:
Ahmed Bouhuolia
2023-12-14 20:47:52 +02:00
parent 33e5d1a979
commit 217321380a
18 changed files with 325 additions and 38 deletions

View File

@@ -6,7 +6,7 @@ import { Intent } from '@blueprintjs/core';
import { AppToaster } from '@/components';
import { PreferencesCreditNotesFormSchema } from './PreferencesCreditNotesForm.schema';
import { usePreferencesInvoiceFormContext } from './PreferencesCreditNotesFormBoot';
import { usePreferencesCreditNotesFormContext } from './PreferencesCreditNotesFormBoot';
import { PreferencesCreditNotesForm } from './PreferencesCreditNotesForm';
import withDashboardActions from '@/containers/Dashboard/withDashboardActions';
@@ -18,16 +18,16 @@ const defaultValues = {
};
/**
* Preferences - .
* Preferences - Credit Notes.
*/
function PreferencesCreditNotesFormPageRoot({
// #withDashboardActions
changePreferencesPageTitle,
}) {
const { organization } = usePreferencesInvoiceFormContext();
const { organization } = usePreferencesCreditNotesFormContext();
useEffect(() => {
changePreferencesPageTitle(intl.get('preferences.estimates'));
changePreferencesPageTitle(intl.get('preferences.creditNotes'));
}, [changePreferencesPageTitle]);
// Initial values.