mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
fix: Typo payments made
This commit is contained in:
@@ -120,7 +120,7 @@ function PaymentMadeForm({
|
||||
});
|
||||
setSubmitting(false);
|
||||
|
||||
submitPayload.redirect && history.push('/payment-mades');
|
||||
submitPayload.redirect && history.push('/payments-made');
|
||||
submitPayload.resetForm && resetForm();
|
||||
};
|
||||
|
||||
@@ -68,7 +68,7 @@ function PaymentMadeActionsBar({
|
||||
|
||||
// Handle new payment made button click.
|
||||
const handleClickNewPaymentMade = () => {
|
||||
history.push('/payment-mades/new');
|
||||
history.push('/payments-made/new');
|
||||
};
|
||||
// Handle tab changing.
|
||||
const handleTabChange = (viewSlug) => {
|
||||
@@ -84,7 +84,7 @@ function PaymentMadeActionsBar({
|
||||
};
|
||||
// Handle the import button click.
|
||||
const handleImportBtnClick = () => {
|
||||
history.push('/payment-mades/import');
|
||||
history.push('/payments-made/import');
|
||||
};
|
||||
// Handle the export button click.
|
||||
const handleExportBtnClick = () => {
|
||||
@@ -37,7 +37,7 @@ function PaymentMadeViewTabs({
|
||||
);
|
||||
|
||||
const handleClickNewView = () => {
|
||||
history.push('/custom_views/payment-mades/new');
|
||||
history.push('/custom_views/payments-made/new');
|
||||
};
|
||||
|
||||
return (
|
||||
@@ -23,7 +23,7 @@ export default function PaymentMadesEmptyStatus() {
|
||||
intent={Intent.PRIMARY}
|
||||
large={true}
|
||||
onClick={() => {
|
||||
history.push('/payment-mades/new');
|
||||
history.push('/payments-made/new');
|
||||
}}
|
||||
>
|
||||
<T id={'new_bill_payment'} />
|
||||
@@ -61,7 +61,7 @@ function PaymentMadesTable({
|
||||
|
||||
// Handles the edit payment made action.
|
||||
const handleEditPaymentMade = (paymentMade) => {
|
||||
history.push(`/payment-mades/${paymentMade.id}/edit`);
|
||||
history.push(`/payments-made/${paymentMade.id}/edit`);
|
||||
};
|
||||
|
||||
// Handles the delete payment made action.
|
||||
@@ -20,7 +20,7 @@ function PaymentMadesViewPage({
|
||||
<Switch>
|
||||
<Route
|
||||
exact={true}
|
||||
path={['/payment-mades/:custom_view_id/custom_view', '/payment-mades']}
|
||||
path={['/payments-made/:custom_view_id/custom_view', '/payments-made']}
|
||||
>
|
||||
|
||||
{/* <PaymentMadeDataTable
|
||||
@@ -3,14 +3,14 @@ import { useHistory } from 'react-router-dom';
|
||||
import { DashboardInsider } from '@/components';
|
||||
import { ImportView } from '@/containers/Import';
|
||||
|
||||
export default function PaymentMadesImport() {
|
||||
export default function PaymentsMadeImport() {
|
||||
const history = useHistory();
|
||||
|
||||
const handleCancelBtnClick = () => {
|
||||
history.push('/payment-mades');
|
||||
history.push('/payments-made');
|
||||
};
|
||||
const handleImportSuccess = () => {
|
||||
history.push('/payment-mades');
|
||||
history.push('/payments-made');
|
||||
};
|
||||
|
||||
return (
|
||||
@@ -13,7 +13,7 @@ import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
||||
/**
|
||||
* Universal search bill item select action.
|
||||
*/
|
||||
function PaymentMadeUniversalSearchSelectComponent({
|
||||
function PaymentsMadeUniversalSearchSelectComponent({
|
||||
// #ownProps
|
||||
resourceType,
|
||||
resourceId,
|
||||
@@ -27,14 +27,14 @@ function PaymentMadeUniversalSearchSelectComponent({
|
||||
return null;
|
||||
}
|
||||
|
||||
export const PaymentMadeUniversalSearchSelect = withDrawerActions(
|
||||
PaymentMadeUniversalSearchSelectComponent,
|
||||
export const PaymentsMadeUniversalSearchSelect = withDrawerActions(
|
||||
PaymentsMadeUniversalSearchSelectComponent,
|
||||
);
|
||||
|
||||
/**
|
||||
* Payment made universal search item.
|
||||
*/
|
||||
export function PaymentMadeUniversalSearchItem(
|
||||
export function PaymentsMadeUniversalSearchItem(
|
||||
{ text, label, reference },
|
||||
{ handleClick, modifiers, query },
|
||||
) {
|
||||
@@ -78,9 +78,9 @@ const paymentMadeToSearch = (payment) => ({
|
||||
*/
|
||||
export const universalSearchPaymentMadeBind = () => ({
|
||||
resourceType: RESOURCES_TYPES.PAYMENT_MADE,
|
||||
optionItemLabel: intl.get('payment_mades'),
|
||||
selectItemAction: PaymentMadeUniversalSearchSelect,
|
||||
itemRenderer: PaymentMadeUniversalSearchItem,
|
||||
optionItemLabel: intl.get('payments_made'),
|
||||
selectItemAction: PaymentsMadeUniversalSearchSelect,
|
||||
itemRenderer: PaymentsMadeUniversalSearchItem,
|
||||
itemSelect: paymentMadeToSearch,
|
||||
permission: {
|
||||
ability: PaymentMadeAction.View,
|
||||
Reference in New Issue
Block a user