그래프 수정
This commit is contained in:
@@ -63,6 +63,7 @@ import {
|
||||
type TradeNotificationGridPresetId,
|
||||
} from '../utils/tradeNotificationGridPresets';
|
||||
import { sortTradeNotifications } from '../utils/tradeListSort';
|
||||
import { getKoreanName } from '../utils/marketNameCache';
|
||||
|
||||
type RightTab = 'trade' | 'orderbook';
|
||||
|
||||
@@ -380,9 +381,14 @@ export const TradeNotificationListPage: React.FC<Props> = ({
|
||||
items = items.filter(n => {
|
||||
const mkt = n.market.toLowerCase();
|
||||
const sym = n.market.includes('-') ? n.market.split('-')[1].toLowerCase() : mkt;
|
||||
const ko = (
|
||||
tickers?.get(n.market)?.koreanName ??
|
||||
getKoreanName(n.market)
|
||||
).toLowerCase();
|
||||
const strat = (n.strategyName ?? '').toLowerCase();
|
||||
const sigKo = n.signalType === 'BUY' ? '매수' : '매도';
|
||||
return (
|
||||
ko.includes(normalizedQuery) ||
|
||||
mkt.includes(normalizedQuery) ||
|
||||
sym.includes(normalizedQuery) ||
|
||||
strat.includes(normalizedQuery) ||
|
||||
@@ -391,7 +397,7 @@ export const TradeNotificationListPage: React.FC<Props> = ({
|
||||
});
|
||||
}
|
||||
return items;
|
||||
}, [allNotifications, filter, candleFilter, normalizedQuery]);
|
||||
}, [allNotifications, filter, candleFilter, normalizedQuery, tickers]);
|
||||
|
||||
const sorted = useMemo(
|
||||
() => sortTradeNotifications(filtered, listSort),
|
||||
@@ -525,7 +531,7 @@ export const TradeNotificationListPage: React.FC<Props> = ({
|
||||
<input
|
||||
type="text"
|
||||
className="tnl-search-input"
|
||||
placeholder="종목·전략 검색"
|
||||
placeholder="한글 종목명·코드·전략 검색"
|
||||
value={query}
|
||||
onChange={e => setQuery(e.target.value)}
|
||||
aria-label="알림 목록 검색"
|
||||
|
||||
Reference in New Issue
Block a user