- {pf.cashList.map((item) => {
- const isEditing = pf.cashEditingBroker === item.broker;
- return (
-
- {item.broker}
- {isEditing ? (
- pf.setCashEditingValue(e.target.value)}
- onKeyDown={(e) => {
- if (e.key === 'Enter') pf.handleCashInlineSave(item.broker);
- if (e.key === 'Escape') pf.handleCashInlineCancel();
- }}
- autoFocus
- />
- ) : (
-
- {formatNumber(item.cash)}원
-
- )}
-
- {item.updated_at
- ? new Date(item.updated_at).toLocaleDateString('ko-KR')
- : ''}
-
- {isEditing ? (
- <>
-
-
- >
- ) : (
- <>
-
-
- >
- )}
-
- );
- })}
-
- )}
- {pf.cashList.length === 0 && (
-