feat: manual journal drawer & paper footer RLT.

This commit is contained in:
elforjani3
2021-06-27 14:08:32 +02:00
parent c42a134b76
commit a6770c145b
4 changed files with 13 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
import React from 'react';
import { useJournal } from 'hooks/query';
import { DashboardInsider, DrawerHeaderContent } from 'components';
import intl from 'react-intl-universal';
const ManualJournalDrawerContext = React.createContext();
@@ -25,7 +26,9 @@ function ManualJournalDrawerProvider({ manualJournalId, ...props }) {
<DashboardInsider loading={isJournalLoading}>
<DrawerHeaderContent
name={'journal-drawer'}
title={`Manual Journal ${manualJournal?.journal_number}`}
title={intl.get('manual_journal_number', {
number: manualJournal?.journal_number,
})}
/>
<ManualJournalDrawerContext.Provider value={provider} {...props} />
</DashboardInsider>