fix landing route names (#8)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { generatePath } from 'react-router-dom';
|
||||
import { getNavigationValue } from '@brojs/cli';
|
||||
|
||||
import { Order } from '../models';
|
||||
import { Order } from '../models/landing';
|
||||
|
||||
const getFullUrls = (url: string) =>
|
||||
`${getNavigationValue('dry-wash.main')}${url}`;
|
||||
@@ -13,14 +13,14 @@ export const URLs = {
|
||||
return this.url;
|
||||
},
|
||||
},
|
||||
orderForm: {
|
||||
url: getNavigationValue('dry-wash.create'),
|
||||
orderCreate: {
|
||||
url: getFullUrls(getNavigationValue('dry-wash.order.create')),
|
||||
getUrl() {
|
||||
return this.url;
|
||||
},
|
||||
},
|
||||
orderView: {
|
||||
url: getNavigationValue('dry-wash.view.order'),
|
||||
url: getFullUrls(getNavigationValue('dry-wash.order.view')),
|
||||
getUrl(orderId: Order.Id) {
|
||||
return generatePath(this.url, { orderId });
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user