WIP feature/breadcrumb/fix_localize

This commit is contained in:
elforjani3
2020-05-13 00:02:21 +02:00
parent 4ab85eaf09
commit e6f63fbc88
69 changed files with 610 additions and 394 deletions

View File

@@ -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 (

View File

@@ -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({

View File

@@ -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>

View File

@@ -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}