import React from 'react'; import { Intent, Classes, Tooltip, Position, Tag, Button } from '@blueprintjs/core'; import { FormattedMessage as T } from 'react-intl'; import { Choose, Money, If, Icon, Hint } from 'components'; import withAccountDetails from 'containers/Accounts/withAccountDetail'; import { compose } from 'utils'; const AmountPopoverContentLineRender = ({ journalEntry, accountId, // #withAccountDetail account, }) => { const isCredit = !!journalEntry.credit; const isDebit = !!journalEntry.debit; return (
C. USD -{' '} {account.name} ({account.code})
D. USD -{' '} {account.name} ({account.code})
); }; const AmountPopoverContentLine = compose(withAccountDetails)( AmountPopoverContentLineRender, ); export function AmountPopoverContent({ journalEntries }) { const journalLinesProps = journalEntries.map((journalEntry) => ({ journalEntry, accountId: journalEntry.account_id, })); return (
{journalLinesProps.map(({ journalEntry, accountId }) => ( ))}
); } /** * publish column accessor. */ export const StatusAccessor = (row) => { return ( ); }; /** * Note column accessor. */ export function NoteAccessor(row) { return ( ); } // Contact header cell. export function ContactHeaderCell() { return ( <> } position={Position.LEFT_BOTTOM} /> ); } // Actions cell renderer. export const ActionsCellRenderer = ({ row: { index }, column: { id }, cell: { value: initialValue }, data, payload, }) => { if (data.length <= index + 1) { return ''; } const onClickRemoveRole = () => { payload.removeRow(index); }; return ( } position={Position.LEFT}>