mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
WIP feature/breadcrumb/fix_localize
This commit is contained in:
@@ -26,11 +26,11 @@ function MakeJournalEntriesPage({
|
||||
|
||||
const handleFormSubmit = useCallback((payload) => {
|
||||
payload.redirect &&
|
||||
history.push('/dashboard/accounting/manual-journals');
|
||||
history.push('/manual-journals');
|
||||
}, [history]);
|
||||
|
||||
const handleCancel = useCallback(() => {
|
||||
history.push('/dashboard/accounting/manual-journals');
|
||||
history.push('/manual-journals');
|
||||
}, [history]);
|
||||
|
||||
return (
|
||||
|
||||
@@ -53,7 +53,7 @@ function ManualJournalActionsBar({
|
||||
});
|
||||
|
||||
const onClickNewManualJournal = useCallback(() => {
|
||||
history.push('/dashboard/accounting/make-journal-entry');
|
||||
history.push('/make-journal-entry');
|
||||
}, [history]);
|
||||
|
||||
const filterDropdown = FilterDropdown({
|
||||
|
||||
@@ -97,7 +97,7 @@ function ManualJournalsTable({
|
||||
|
||||
const handleEditJournal = useCallback(
|
||||
(journal) => {
|
||||
history.push(`/dashboard/accounting/manual-journals/${journal.id}/edit`);
|
||||
history.push(`/manual-journals/${journal.id}/edit`);
|
||||
},
|
||||
[history]
|
||||
);
|
||||
@@ -162,8 +162,8 @@ function ManualJournalsTable({
|
||||
<Route
|
||||
exact={true}
|
||||
path={[
|
||||
'/dashboard/accounting/manual-journals/:custom_view_id/custom_view',
|
||||
'/dashboard/accounting/manual-journals',
|
||||
'/manual-journals/:custom_view_id/custom_view',
|
||||
'/manual-journals',
|
||||
]}>
|
||||
</Route>
|
||||
</Switch>
|
||||
|
||||
@@ -39,7 +39,7 @@ function ManualJournalsViewTabs({
|
||||
|
||||
const handleClickNewView = () => {
|
||||
setTopbarEditView(null);
|
||||
history.push('/dashboard/custom_views/manual_journals/new');
|
||||
history.push('/custom_views/manual_journals/new');
|
||||
};
|
||||
const handleViewLinkClick = () => {
|
||||
setTopbarEditView(customViewId);
|
||||
@@ -61,7 +61,7 @@ function ManualJournalsViewTabs({
|
||||
}, [customViewId]);
|
||||
|
||||
const tabs = manualJournalsViews.map((view) => {
|
||||
const baseUrl = '/dashboard/accounting/manual-journals';
|
||||
const baseUrl = '/manual-journals';
|
||||
const link = (
|
||||
<Link
|
||||
to={`${baseUrl}/${view.id}/custom_view`}
|
||||
@@ -85,7 +85,7 @@ function ManualJournalsViewTabs({
|
||||
<Tab
|
||||
id='all'
|
||||
title={
|
||||
<Link to={`/dashboard/accounting/manual-journals`}>All</Link>
|
||||
<Link to={`/manual-journals`}>All</Link>
|
||||
}
|
||||
/>
|
||||
{tabs}
|
||||
|
||||
Reference in New Issue
Block a user