File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11// src/components/AddAssetForm.tsx
22import { useState } from "react" ;
3- import { Button } from "@/components/ui/button" ;
4- import { Input } from "@/components/ui/input" ;
3+ import { Button } from "@/components/ui/button.tsx " ;
4+ import { Input } from "@/components/ui/input.tsx " ;
55import {
66 Select ,
77 SelectTrigger ,
88 SelectValue ,
99 SelectContent ,
1010 SelectItem ,
11- } from "@/components/ui/select" ;
12- import { useToast } from "@/hooks/use-toast" ;
13- import { Asset } from "@/model/Asset" ;
11+ } from "@/components/ui/select.tsx " ;
12+ import { useToast } from "@/hooks/use-toast.ts " ;
13+ import { Asset } from "@/model/Asset.ts " ;
1414
1515interface AddAssetFormProps {
1616 availableAssets : Asset [ ] ;
Original file line number Diff line number Diff line change 11// src/components/AlertCard.tsx
2- import { Card , CardContent } from "@/components/ui/card" ;
3- import { Badge } from "@/components/ui/badge" ;
2+ import { Card , CardContent } from "@/components/ui/card.tsx " ;
3+ import { Badge } from "@/components/ui/badge.tsx " ;
44
55interface AlertCardProps {
66 stock : string ;
Original file line number Diff line number Diff line change 11// src/components/AssetTable.tsx
22import { useEffect , useState } from "react" ;
3- import { Badge } from "@/components/ui/badge" ;
4- import { Button } from "@/components/ui/button" ;
3+ import { Badge } from "@/components/ui/badge.tsx " ;
4+ import { Button } from "@/components/ui/button.tsx " ;
55import { Pencil } from "lucide-react" ;
66
7- import { PortfolioHolding } from "@/model/PortfolioHolding" ;
8- import { Asset } from "@/model/Asset" ;
9- import { AssetsHttpService } from "@/services/assets-http-service" ;
10- import { DecisionHttpService } from "@/services/decision-http-service" ;
11- import { UsersHttpService } from "@/services/users-http-service" ;
7+ import { PortfolioHolding } from "@/model/PortfolioHolding.ts " ;
8+ import { Asset } from "@/model/Asset.ts " ;
9+ import { AssetsHttpService } from "@/services/assets-http-service.ts " ;
10+ import { DecisionHttpService } from "@/services/decision-http-service.ts " ;
11+ import { UsersHttpService } from "@/services/users-http-service.ts " ;
1212
1313const assetsService = new AssetsHttpService ( ) ;
1414const decisionService = new DecisionHttpService ( ) ;
File renamed without changes.
Original file line number Diff line number Diff line change 1- // src/components/NewsCard.tsx
2- import { Card , CardContent } from "@/components/ui/card" ;
3- import { Badge } from "@/components/ui/badge" ;
4- import { Button } from "@/components/ui/button" ;
1+ import { Card , CardContent } from "@/components/ui/card.tsx" ;
2+ import { Badge } from "@/components/ui/badge.tsx" ;
3+ import { Button } from "@/components/ui/button.tsx" ;
54import { ExternalLink } from "lucide-react" ;
65
7- /**
8- * Props:
9- * - stocks: string[] (e.g. ["AAPL", "TSLA"])
10- * - title: string
11- * - timestamp: string (already formatted)
12- * - url: string (link to the original news)
13- */
146interface NewsCardProps {
157 stocks : string [ ] ;
168 title : string ;
Original file line number Diff line number Diff line change 11import { Navigate , useLocation } from "react-router-dom" ;
22import { ReactNode } from "react" ;
33import useAuth from "@/hooks/useAuth.ts" ;
4- import { LoadingLayer } from "@/components/LoadingLayer.tsx" ;
4+ import { LoadingLayer } from "@/components/dashboard/ LoadingLayer.tsx" ;
55
66export function RequireAuth ( { children} : { children : ReactNode } ) {
77 const { isAuthenticated, loading} = useAuth ( ) ;
Original file line number Diff line number Diff line change @@ -5,23 +5,23 @@ import {
55 CardContent ,
66 CardHeader ,
77 CardTitle ,
8- } from "@/components/ui/card" ;
9- import { Button } from "@/components/ui/button" ;
8+ } from "@/components/ui/card.tsx " ;
9+ import { Button } from "@/components/ui/button.tsx " ;
1010import { Calendar as CalendarIcon } from "lucide-react" ;
1111import {
1212 Popover ,
1313 PopoverContent ,
1414 PopoverTrigger ,
15- } from "@/components/ui/popover" ;
16- import { Calendar } from "@/components/ui/calendar" ;
17- import { cn } from "@/lib/utils" ;
18- import { Badge } from "@/components/ui/badge" ;
15+ } from "@/components/ui/popover.tsx " ;
16+ import { Calendar } from "@/components/ui/calendar.tsx " ;
17+ import { cn } from "@/lib/utils.ts " ;
18+ import { Badge } from "@/components/ui/badge.tsx " ;
1919
20- import { PortfolioHolding } from "@/model/PortfolioHolding" ;
20+ import { PortfolioHolding } from "@/model/PortfolioHolding.ts " ;
2121import { DateRange } from "react-day-picker" ;
2222import { format } from "date-fns" ;
2323
24- import { SimulationResults } from "@/components/SimulationResults" ;
24+ import { SimulationResults } from "@/components/dashboard/ SimulationResults.tsx " ;
2525
2626interface SimulationPanelProps {
2727 holdings : PortfolioHolding [ ] ;
Original file line number Diff line number Diff line change 44 CardContent ,
55 CardHeader ,
66 CardTitle ,
7- } from "@/components/ui/card" ;
8- import { Button } from "@/components/ui/button" ;
7+ } from "@/components/ui/card.tsx " ;
8+ import { Button } from "@/components/ui/button.tsx " ;
99import {
1010 CartesianGrid ,
1111 Legend ,
@@ -22,7 +22,7 @@ import {
2222 SelectItem ,
2323 SelectTrigger ,
2424 SelectValue ,
25- } from "@/components/ui/select" ;
25+ } from "@/components/ui/select.tsx " ;
2626import { ArrowLeft } from "lucide-react" ;
2727
2828/**
Original file line number Diff line number Diff line change 1+ export { AddAssetForm } from "./AddAssetForm.tsx" ;
2+ export { AlertCard } from "./AlertCard.tsx" ;
3+ export { AssetTable } from "./AssetTable.tsx" ;
4+ export { NewsCard } from "./NewsCard.tsx" ;
5+ export { SimulationPanel } from "./SimulationPanel.tsx" ;
6+ export { SimulationResults } from "./SimulationResults.tsx" ;
You can’t perform that action at this time.
0 commit comments