Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | 7x 7x 7x 7x 7x 7x 7x 7x 11x 7x 7x 7x | /**
* Constants related to transactions
*/
// Transaction Types
export const TRANSACTION_TYPES = {
BITCOIN: 'B',
CARD: 'card',
} as const;
// Transaction Status
export const TRANSACTION_STATUS = {
COMPLETED: 'Completed',
FAILED: 'Failed',
IN_PROGRESS: 'In Progress',
} as const;
// Transaction Status Text
export const TRANSACTION_STATUS_TEXT = {
[TRANSACTION_STATUS.COMPLETED]: TRANSACTION_STATUS.COMPLETED,
[TRANSACTION_STATUS.FAILED]: TRANSACTION_STATUS.FAILED,
[TRANSACTION_STATUS.IN_PROGRESS]: TRANSACTION_STATUS.IN_PROGRESS,
};
// Transaction Type Alt Text
export const TRANSACTION_TYPE_ALT = {
[TRANSACTION_TYPES.BITCOIN]: 'Bitcoin',
[TRANSACTION_TYPES.CARD]: 'Card',
DEFAULT: '?',
};
// Transaction Table Column Headers
export const TRANSACTION_TABLE_HEADERS = [
{ id: 'date', label: 'Date' },
{ id: 'transactionId', label: 'Transaction ID' },
{ id: 'type', label: 'Type' },
{ id: 'name', label: 'Name' },
{ id: 'value', label: 'Value' },
{ id: 'return', label: 'Return' },
{ id: 'status', label: 'Status' },
{ id: 'action', label: 'Action' },
];
// Transaction Action Menu Labels
export const TRANSACTION_ACTIONS = {
CREATE_NEW: 'Place New',
DELETE: 'Delete',
DELETE_CONFIRMATION: 'Are you sure you want to delete this transaction?',
};
// Transaction Empty State Content
export const TRANSACTION_EMPTY_STATE = {
HEADING: 'No transactions found',
DESCRIPTION: 'Get started by creating your first transaction.',
BUTTON_TEXT: 'Create New Transaction',
};
// API Endpoints
export const TRANSACTION_API_ENDPOINTS = {
BASE: '/transactions',
BY_ID: (id: string) => `/transactions/${id}`,
};
// Transaction API Default Values
export const TRANSACTION_DEFAULTS = {
RETURN: '#0',
STATUS: TRANSACTION_STATUS.IN_PROGRESS,
TRANSACTION_ID_PREFIX: 'TXN',
};
// Default Sort Order
export const TRANSACTION_DEFAULT_SORT = 'date:desc';
// Default Page Size
export const TRANSACTION_DEFAULT_PAGE_SIZE = 10;
|