mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
feat: wip default message to sales transactions.
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
// @ts-nocheck
|
||||
import React from 'react';
|
||||
import classNames from 'classnames';
|
||||
import styled from 'styled-components';
|
||||
import { CLASSES } from '@/constants/classes';
|
||||
import { useSettings } from '@/hooks/query';
|
||||
import PreferencesPageLoader from '../PreferencesPageLoader';
|
||||
import { Card } from '@/components';
|
||||
|
||||
const PreferencesInvoiceFormContext = React.createContext();
|
||||
|
||||
@@ -26,15 +28,25 @@ function PreferencesInvoicesBoot({ ...props }) {
|
||||
CLASSES.PREFERENCES_PAGE_INSIDE_CONTENT_ACCOUNTANT,
|
||||
)}
|
||||
>
|
||||
{isLoading ? (
|
||||
<PreferencesPageLoader />
|
||||
) : (
|
||||
<PreferencesInvoiceFormContext.Provider value={provider} {...props} />
|
||||
)}
|
||||
<PreferencesInvoicesCard>
|
||||
{isLoading ? (
|
||||
<PreferencesPageLoader />
|
||||
) : (
|
||||
<PreferencesInvoiceFormContext.Provider value={provider} {...props} />
|
||||
)}
|
||||
</PreferencesInvoicesCard>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
const PreferencesInvoicesCard = styled(Card)`
|
||||
padding: 25px;
|
||||
|
||||
.bp4-form-group{
|
||||
max-width: 600px;
|
||||
}
|
||||
`;
|
||||
|
||||
const usePreferencesInvoiceFormContext = () =>
|
||||
React.useContext(PreferencesInvoiceFormContext);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user