mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
fix: rename dashboard routes.
This commit is contained in:
@@ -15,7 +15,7 @@ import { compose } from 'utils';
|
||||
|
||||
import 'style/pages/SaleEstimate/PageForm.scss';
|
||||
|
||||
function Estimates({
|
||||
function EstimateFormPage({
|
||||
// #withCustomersActions
|
||||
requestFetchCustomers,
|
||||
|
||||
@@ -101,4 +101,4 @@ export default compose(
|
||||
withItemsActions,
|
||||
withSettingsActions,
|
||||
withDashboardActions,
|
||||
)(Estimates);
|
||||
)(EstimateFormPage);
|
||||
@@ -20,7 +20,7 @@ import withViewsActions from 'containers/Views/withViewsActions';
|
||||
|
||||
import { compose } from 'utils';
|
||||
|
||||
function EstimateList({
|
||||
function EstimatesList({
|
||||
// #withDashboardActions
|
||||
changePageTitle,
|
||||
|
||||
@@ -65,7 +65,7 @@ function EstimateList({
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
changePageTitle(formatMessage({ id: 'estimate_list' }));
|
||||
changePageTitle(formatMessage({ id: 'estimates_list' }));
|
||||
}, [changePageTitle, formatMessage]);
|
||||
|
||||
// handle delete estimate click
|
||||
@@ -288,4 +288,4 @@ export default compose(
|
||||
estimatesTableQuery,
|
||||
estimateViews,
|
||||
})),
|
||||
)(EstimateList);
|
||||
)(EstimatesList);
|
||||
@@ -15,7 +15,7 @@ import { compose } from 'utils';
|
||||
|
||||
import 'style/pages/SaleInvoice/PageForm.scss';
|
||||
|
||||
function Invoices({
|
||||
function InvoiceFormPage({
|
||||
// #withCustomersActions
|
||||
requestFetchCustomers,
|
||||
|
||||
@@ -100,4 +100,4 @@ export default compose(
|
||||
withItemsActions,
|
||||
withSettingsActions,
|
||||
withDashboardActions,
|
||||
)(Invoices);
|
||||
)(InvoiceFormPage);
|
||||
@@ -23,7 +23,7 @@ import { compose } from 'utils';
|
||||
/**
|
||||
* Invoices list.
|
||||
*/
|
||||
function InvoiceList({
|
||||
function InvoicesList({
|
||||
// #withDashboardActions
|
||||
changePageTitle,
|
||||
|
||||
@@ -48,7 +48,7 @@ function InvoiceList({
|
||||
const [selectedRows, setSelectedRows] = useState([]);
|
||||
|
||||
useEffect(() => {
|
||||
changePageTitle(formatMessage({ id: 'invoice_list' }));
|
||||
changePageTitle(formatMessage({ id: 'invoices_list' }));
|
||||
}, [changePageTitle, formatMessage]);
|
||||
|
||||
const fetchResourceViews = useQuery(
|
||||
@@ -222,4 +222,4 @@ export default compose(
|
||||
withInvoices(({ invoicesTableQuery }) => ({
|
||||
invoicesTableQuery,
|
||||
})),
|
||||
)(InvoiceList);
|
||||
)(InvoicesList);
|
||||
@@ -42,7 +42,7 @@ function PaymentReceiveList({
|
||||
const [selectedRows, setSelectedRows] = useState([]);
|
||||
|
||||
useEffect(() => {
|
||||
changePageTitle(formatMessage({ id: 'payment_Receive_list' }));
|
||||
changePageTitle(formatMessage({ id: 'payment_Receives_list' }));
|
||||
}, [changePageTitle, formatMessage]);
|
||||
|
||||
const fetchResourceViews = useQuery(
|
||||
@@ -14,7 +14,7 @@ import withDashboardActions from 'containers/Dashboard/withDashboardActions';
|
||||
|
||||
import { compose } from 'utils';
|
||||
|
||||
function Receipts({
|
||||
function ReceiptFormPage({
|
||||
//#withwithAccountsActions
|
||||
requestFetchAccounts,
|
||||
|
||||
@@ -107,4 +107,4 @@ export default compose(
|
||||
withAccountsActions,
|
||||
withSettingsActions,
|
||||
withDashboardActions,
|
||||
)(Receipts);
|
||||
)(ReceiptFormPage);
|
||||
@@ -20,7 +20,7 @@ import withViewsActions from 'containers/Views/withViewsActions';
|
||||
|
||||
import { compose } from 'utils';
|
||||
|
||||
function ReceiptList({
|
||||
function ReceiptsList({
|
||||
// #withDashboardActions
|
||||
changePageTitle,
|
||||
|
||||
@@ -54,7 +54,7 @@ function ReceiptList({
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
changePageTitle(formatMessage({ id: 'receipt_list' }));
|
||||
changePageTitle(formatMessage({ id: 'receipts_list' }));
|
||||
}, [changePageTitle, formatMessage]);
|
||||
|
||||
// handle delete receipt click
|
||||
@@ -206,4 +206,4 @@ export default compose(
|
||||
withReceipts(({ receiptTableQuery }) => ({
|
||||
receiptTableQuery,
|
||||
})),
|
||||
)(ReceiptList);
|
||||
)(ReceiptsList);
|
||||
Reference in New Issue
Block a user