diff --git a/src/pages/webapp/Alerts.tsx b/src/pages/webapp/Alerts.tsx index 802d8ce..21e409b 100644 --- a/src/pages/webapp/Alerts.tsx +++ b/src/pages/webapp/Alerts.tsx @@ -5,6 +5,7 @@ import {AlertsHttpService} from "@/services/alerts-http-service.ts"; import {AssetsHttpService} from "@/services/assets-http-service.ts"; import {Asset} from "@/model/Asset.ts"; import {Badge} from "@/components/ui/badge.tsx"; +import {Card} from "@/components/ui/card.tsx"; const alertsHttpService = new AlertsHttpService(); const assetsHttpService = new AssetsHttpService(); @@ -31,6 +32,7 @@ function RecentAlerts() { setAssets(assets); setAlerts(alerts); } + fetchData().then(); }, []) @@ -47,43 +49,51 @@ function RecentAlerts() { {alerts.map((alert) => { const asset = getAsset(alert.assetId); return ( -
-
+
+
+ {alert.type === "BUY"
+ ? "Technical indicators sugests buying opportunity"
+ : (alert.type === "SELL"
+ ? "Technical indicators sugests selling opportunity"
+ : "Technical indicators sugests no change")
+ }
+
- {uniqueAssets.map(asset => (
-
{newsItems[0].title}
-
+ {uniqueAssets.map(asset => (
+
{newsItems[0].title}
+