mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-23 00:00:31 +00:00
fix: defaultTabText in Payment Receive & Payment Made.
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import React, { useEffect, useRef } from 'react';
|
import React, { useEffect, useRef } from 'react';
|
||||||
import { useHistory } from 'react-router';
|
import { useHistory } from 'react-router';
|
||||||
|
import { FormattedMessage as T } from 'react-intl';
|
||||||
import { Alignment, Navbar, NavbarGroup } from '@blueprintjs/core';
|
import { Alignment, Navbar, NavbarGroup } from '@blueprintjs/core';
|
||||||
import { useParams, withRouter } from 'react-router-dom';
|
import { useParams, withRouter } from 'react-router-dom';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
@@ -80,7 +81,7 @@ function PaymentMadeViewTabs({
|
|||||||
<NavbarGroup align={Alignment.LEFT}>
|
<NavbarGroup align={Alignment.LEFT}>
|
||||||
<DashboardViewsTabs
|
<DashboardViewsTabs
|
||||||
initialViewId={customViewId}
|
initialViewId={customViewId}
|
||||||
baseUrl={'/payment-mades'}
|
defaultTabText={<T id={'all_payments'} />}
|
||||||
tabs={tabs}
|
tabs={tabs}
|
||||||
onNewViewTabClick={handleClickNewView}
|
onNewViewTabClick={handleClickNewView}
|
||||||
onChange={handleTabsChange}
|
onChange={handleTabsChange}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import React, { useEffect, useRef } from 'react';
|
|||||||
import { useHistory } from 'react-router';
|
import { useHistory } from 'react-router';
|
||||||
import { Alignment, Navbar, NavbarGroup } from '@blueprintjs/core';
|
import { Alignment, Navbar, NavbarGroup } from '@blueprintjs/core';
|
||||||
import { useParams, withRouter } from 'react-router-dom';
|
import { useParams, withRouter } from 'react-router-dom';
|
||||||
|
import { FormattedMessage as T } from 'react-intl';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { pick, debounce } from 'lodash';
|
import { pick, debounce } from 'lodash';
|
||||||
|
|
||||||
@@ -82,8 +83,8 @@ function PaymentReceiveViewTabs({
|
|||||||
<NavbarGroup align={Alignment.LEFT}>
|
<NavbarGroup align={Alignment.LEFT}>
|
||||||
<DashboardViewsTabs
|
<DashboardViewsTabs
|
||||||
initialViewId={customViewId}
|
initialViewId={customViewId}
|
||||||
baseUrl={'/payment-receives'}
|
|
||||||
tabs={tabs}
|
tabs={tabs}
|
||||||
|
defaultTabText={<T id={'all_payments'}/>}
|
||||||
onNewViewTabClick={handleClickNewView}
|
onNewViewTabClick={handleClickNewView}
|
||||||
onChange={handleTabsChange}
|
onChange={handleTabsChange}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -928,4 +928,5 @@ export default {
|
|||||||
'Are you sure you want to activate this item? You will be able to inactivate it later',
|
'Are you sure you want to activate this item? You will be able to inactivate it later',
|
||||||
inactivate_item: 'Inactivate Item',
|
inactivate_item: 'Inactivate Item',
|
||||||
activate_item: 'Activate Item',
|
activate_item: 'Activate Item',
|
||||||
|
all_payments:'All Payments'
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user