mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
refactoring: rename receivable & payables.
This commit is contained in:
@@ -13,7 +13,10 @@ import { FormattedMessage as T } from 'react-intl';
|
||||
import { firstLettersArgs } from 'utils';
|
||||
import { useAuthActions, useAuthUser } from 'hooks/state';
|
||||
|
||||
export default function DashboardTopbarUser() {
|
||||
import withDialogActions from 'containers/Dialog/withDialogActions';
|
||||
import { compose } from 'utils';
|
||||
|
||||
function DashboardTopbarUser({ openDialog }) {
|
||||
const history = useHistory();
|
||||
const { setLogout } = useAuthActions();
|
||||
const user = useAuthUser();
|
||||
@@ -22,6 +25,10 @@ export default function DashboardTopbarUser() {
|
||||
setLogout();
|
||||
};
|
||||
|
||||
const onKeyboardShortcut = () => {
|
||||
openDialog('keyboard-shortcuts');
|
||||
};
|
||||
|
||||
return (
|
||||
<Popover
|
||||
content={
|
||||
@@ -41,6 +48,10 @@ export default function DashboardTopbarUser() {
|
||||
}
|
||||
/>
|
||||
<MenuDivider />
|
||||
<MenuItem
|
||||
text={<T id={'keyboard_shortcuts'} />}
|
||||
onClick={onKeyboardShortcut}
|
||||
/>
|
||||
<MenuItem
|
||||
text={<T id={'preferences'} />}
|
||||
onClick={() => history.push('/preferences')}
|
||||
@@ -58,3 +69,4 @@ export default function DashboardTopbarUser() {
|
||||
</Popover>
|
||||
);
|
||||
}
|
||||
export default compose(withDialogActions)(DashboardTopbarUser);
|
||||
|
||||
@@ -161,11 +161,11 @@ export default [
|
||||
href: '/financial-reports/profit-loss-sheet',
|
||||
},
|
||||
{
|
||||
text: <T id={'receivable_aging_summary'} />,
|
||||
text: <T id={'receivable_a_r'} />,
|
||||
href: '/financial-reports/receivable-aging-summary',
|
||||
},
|
||||
{
|
||||
text: <T id={'payable_aging_summary'} />,
|
||||
text: <T id={'payable_a_p'} />,
|
||||
href: '/financial-reports/payable-aging-summary',
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user