import React from 'react'; import moment from 'moment'; import { Intent, Button, Popover, Menu, MenuItem, MenuDivider, Position, } from '@blueprintjs/core'; import intl from 'react-intl-universal'; import { Icon, Money } from 'components'; import { safeCallback } from 'utils'; export function DateCell({ value }) { return moment(value).format('YYYY MMM DD'); } export function AmountAccessor(row) { return ; } /** * Actions menu. */ export function ActionsMenu({ row: { original }, payload: { onEdit, onDelete, onViewDetails }, }) { return ( } text={intl.get('view_details')} onClick={safeCallback(onViewDetails, original)} /> } text={intl.get('edit_payment_made')} onClick={safeCallback(onEdit, original)} /> } /> ); } /** * Payment mades table actions cell. */ export function ActionsCell(props) { return ( } position={Position.RIGHT_BOTTOM} >