desktop 앱 적용
This commit is contained in:
@@ -27,6 +27,8 @@ import {
|
||||
type TradeAlertSoundId,
|
||||
} from '../utils/tradeAlertSound';
|
||||
import { normalizeStrategyId } from '../utils/resolveNotificationStrategy';
|
||||
import { showDesktopNativeNotification } from '../utils/desktopBridge';
|
||||
import { getKoreanName } from '../utils/marketNameCache';
|
||||
|
||||
import { getUiPreferences, patchUiPreferences } from '../utils/uiPreferencesDb';
|
||||
import { useAppSettings } from '../hooks/useAppSettings';
|
||||
@@ -428,6 +430,13 @@ export const TradeNotificationProvider: React.FC<ProviderProps> = ({
|
||||
const rest = prev.filter(n => n.id !== id);
|
||||
return [toastItem, ...rest].slice(0, MAX_TOAST_QUEUE);
|
||||
});
|
||||
|
||||
const sideLabel = signal.signalType === 'BUY' ? '매수' : '매도';
|
||||
const marketLabel = getKoreanName(signal.market);
|
||||
void showDesktopNativeNotification(
|
||||
`GoldenChart ${sideLabel} 시그널`,
|
||||
`${marketLabel} · ₩${Math.round(signal.price ?? 0).toLocaleString()}`,
|
||||
);
|
||||
}, [popupEnabled, soundEnabled, alertSoundId]);
|
||||
|
||||
const dismissToast = useCallback((id: string) => {
|
||||
|
||||
Reference in New Issue
Block a user