게시판 등록시간 수정

This commit is contained in:
Macbook
2026-05-29 15:34:59 +09:00
parent 03441337f2
commit c95732c09b
13 changed files with 129 additions and 66 deletions
+12 -8
View File
@@ -1653,10 +1653,13 @@ function App() {
const lastKnownBar = useUpbit
? (latestBar ?? (bars.length > 0 ? bars[bars.length - 1] : null))
: (bars.length > 0 ? bars[bars.length - 1] : null);
const currentBar = legend ?? lastKnownBar;
const isUp = currentBar ? currentBar.close >= currentBar.open : true;
const prevClose = bars.length > 1 ? bars[bars.length - 2].close : currentBar?.open ?? 0;
const dailyChange = currentBar ? currentBar.close - prevClose : 0;
/** 크로스헤어 OHLC·지표 범례 */
const hoverBar = legend ?? lastKnownBar;
/** 종목명 옆 시세 — 실시간 현재가만 */
const quoteBar = lastKnownBar;
const isUp = quoteBar ? quoteBar.close >= quoteBar.open : true;
const prevClose = bars.length > 1 ? bars[bars.length - 2].close : quoteBar?.open ?? 0;
const dailyChange = quoteBar ? quoteBar.close - prevClose : 0;
const dailyChangePct = prevClose > 0 ? dailyChange / prevClose * 100 : 0;
const openNotificationsPage = useCallback(() => guardedSetMenuPage('notifications'), [guardedSetMenuPage]);
@@ -2071,10 +2074,10 @@ function App() {
<span className="upbit-market">{getKoreanName(symbol)} <span style={{opacity:0.5, fontSize:'11px'}}>{symbol}</span></span>
{isLoading && <span className="upbit-loading"> ...</span>}
{error && <span className="upbit-error"> {error}</span>}
{!isLoading && !error && currentBar && (
{!isLoading && !error && quoteBar && (
<>
<span className="upbit-price" style={{ color: isUp ? 'var(--up)' : 'var(--down)' }}>
{currentBar.close.toLocaleString()} KRW
{quoteBar.close.toLocaleString()} KRW
</span>
<span className={`upbit-change ${isUp ? 'up' : 'down'}`}>
{isUp ? '▲' : '▼'} {Math.abs(dailyChangePct).toFixed(2)}%
@@ -2249,7 +2252,8 @@ function App() {
useUpbit={useUpbit}
wsStatus={wsStatus}
mode={mode}
currentBar={currentBar}
currentBar={hoverBar}
quoteBar={quoteBar}
isUp={isUp}
dailyChange={dailyChange}
dailyChangePct={dailyChangePct}
@@ -2622,7 +2626,7 @@ function App() {
)}
{showAlert && (
<AlertManager
alerts={alerts} currentPrice={currentBar?.close ?? 0}
alerts={alerts} currentPrice={quoteBar?.close ?? 0}
onAdd={(price, label) => { managerRef.current?.addAlert(price, label); setAlerts(prev => [...prev, { price, label }]); }}
onRemove={price => { managerRef.current?.removeAlert(price); setAlerts(prev => prev.filter(a => Math.abs(a.price - price) > 0.0001)); }}
onClose={() => setShowAlert(false)}