mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
feat: manual journal drawer & paper footer RLT.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import React, { lazy } from 'react';
|
||||
import { Drawer, DrawerSuspense } from 'components';
|
||||
import withDrawers from 'containers/Drawer/withDrawers';
|
||||
import intl from 'react-intl-universal';
|
||||
|
||||
import { compose } from 'utils';
|
||||
|
||||
@@ -17,7 +18,7 @@ function ExpenseDrawer({
|
||||
payload: { expenseId, title },
|
||||
}) {
|
||||
return (
|
||||
<Drawer isOpen={isOpen} name={name} title={'Expense'}>
|
||||
<Drawer isOpen={isOpen} name={name} title={intl.get('expense')}>
|
||||
<DrawerSuspense>
|
||||
<ExpenseDrawerContent expenseId={expenseId} />
|
||||
</DrawerSuspense>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import React from 'react';
|
||||
import { If } from 'components';
|
||||
import intl from 'react-intl-universal';
|
||||
|
||||
export default function PaperTemplateFooter({
|
||||
footerData: { terms_conditions },
|
||||
@@ -8,7 +9,7 @@ export default function PaperTemplateFooter({
|
||||
<div className="template__terms">
|
||||
<If condition={terms_conditions}>
|
||||
<div className="template__terms__title">
|
||||
<h4>Conditions and terms</h4>
|
||||
<h4>{intl.get('conditions_and_terms')}</h4>
|
||||
</div>
|
||||
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user