fix(ManualJournal): manual journal drawer.

This commit is contained in:
elforjani3
2021-04-28 20:35:51 +02:00
parent c11e3f97bd
commit 8b7b800834
3 changed files with 10 additions and 13 deletions

View File

@@ -1,6 +1,7 @@
import React from 'react';
import { useJournal } from 'hooks/query';
import { DashboardInsider } from 'components';
import { DashboardInsider, DrawerHeaderContent } from 'components';
const ManualJournalDrawerContext = React.createContext();
/**
@@ -22,6 +23,10 @@ function ManualJournalDrawerProvider({ manualJournalId, ...props }) {
return (
<DashboardInsider loading={isJournalLoading}>
<DrawerHeaderContent
name={'journal-drawer'}
title={`Manual Journal ${manualJournal?.journal_number}`}
/>
<ManualJournalDrawerContext.Provider value={provider} {...props} />
</DashboardInsider>
);