말림목록 매매 버튼 추가
This commit is contained in:
@@ -51,6 +51,8 @@ interface Props {
|
||||
onDelete: (e: React.MouseEvent) => void;
|
||||
onDetail: () => void;
|
||||
onGoToChart: () => void;
|
||||
/** 매매 버튼 클릭 → 우측 매매 패널 열기 */
|
||||
onTrade?: () => void;
|
||||
}
|
||||
|
||||
const MAX_INDICATOR_CARDS = 8;
|
||||
@@ -67,6 +69,7 @@ const TradeNotificationListRow: React.FC<Props> = ({
|
||||
onDelete,
|
||||
onDetail,
|
||||
onGoToChart,
|
||||
onTrade,
|
||||
}) => {
|
||||
useTradeAlertTimeFormat();
|
||||
const isBuy = item.signalType === 'BUY';
|
||||
@@ -309,6 +312,11 @@ const TradeNotificationListRow: React.FC<Props> = ({
|
||||
<button type="button" className="tnl-row-chart" onClick={onGoToChart}>
|
||||
차트
|
||||
</button>
|
||||
{onTrade && (
|
||||
<button type="button" className="tnl-row-trade" onClick={onTrade}>
|
||||
매매
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
</article>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user