diff --git a/attached_assets/기사리스트_1759206911936.docx b/attached_assets/기사리스트_1759206911936.docx new file mode 100644 index 0000000..2980b65 Binary files /dev/null and b/attached_assets/기사리스트_1759206911936.docx differ diff --git a/attached_assets/축구선수와 축구클럽 기사리스트_1759206911936.docx b/attached_assets/축구선수와 축구클럽 기사리스트_1759206911936.docx new file mode 100644 index 0000000..4fadad2 Binary files /dev/null and b/attached_assets/축구선수와 축구클럽 기사리스트_1759206911936.docx differ diff --git a/attached_assets/축구선수와 클럽 7개 추가_1759206911936.docx b/attached_assets/축구선수와 클럽 7개 추가_1759206911936.docx new file mode 100644 index 0000000..a7887e5 Binary files /dev/null and b/attached_assets/축구선수와 클럽 7개 추가_1759206911936.docx differ diff --git a/client/src/pages/Article.tsx b/client/src/pages/Article.tsx index 0c91622..cf897b2 100644 --- a/client/src/pages/Article.tsx +++ b/client/src/pages/Article.tsx @@ -33,16 +33,16 @@ export default function Article() { }, onSuccess: () => { toast({ - title: "베팅 성공", - description: "예측시장 베팅이 성공적으로 완료되었습니다." + title: "Bet Placed Successfully", + description: "Your prediction market bet has been placed." }); queryClient.invalidateQueries({ queryKey: ["/api/articles", params?.slug, "markets"] }); setBetAmounts({}); }, onError: (error: any) => { toast({ - title: "베팅 실패", - description: error.message || "베팅 처리 중 오류가 발생했습니다.", + title: "Bet Failed", + description: error.message || "An error occurred while placing your bet.", variant: "destructive" }); } @@ -80,16 +80,8 @@ export default function Article() { }; const handlePlaceBet = (marketId: string, side: "yes" | "no") => { - const amount = parseFloat(betAmounts[marketId] || "0"); - if (amount <= 0) { - toast({ - title: "잘못된 금액", - description: "베팅 금액을 올바르게 입력해주세요.", - variant: "destructive" - }); - return; - } - + // Default bet amount (can be customized later) + const amount = 10000; placeBetMutation.mutate({ marketId, side, amount }); }; @@ -217,10 +209,7 @@ export default function Article() { {/* Prediction Markets Section */}
-
- -

관련 예측시장

-
+

Related Prediction Markets

{marketsLoading ? (
@@ -237,116 +226,77 @@ export default function Article() { ))}
) : markets.length > 0 ? ( -
+
{markets.map((market) => ( - - - - {market.question} - - - {formatDate(market.resolutionDate)} - - - - + -
- {/* Yes Option */} -
-
-
- - YES -
-
-
현재 가격
-
- {formatPercentage(market.yesPrice)} -
-
-
- -
- handleBetAmountChange(market.id, e.target.value)} - className="border-green-300 focus:border-green-500" - data-testid={`input-bet-amount-${market.id}`} - /> - -
-
+ {/* Question and Live Badge */} +
+

+ {market.question} +

+ {market.isActive && ( + + LIVE + + )} +
- {/* No Option */} -
-
-
- - NO -
-
-
현재 가격
-
- {formatPercentage(market.noPrice)} -
-
+ {/* Percentages */} +
+
+
+ {formatPercentage(market.yesPrice)}
- -
- handleBetAmountChange(market.id, e.target.value)} - className="border-red-300 focus:border-red-500" - data-testid={`input-bet-amount-no-${market.id}`} - /> - +
YES
+
+
+
+ {formatPercentage(market.noPrice)}
+
NO
- {/* Market Stats */} -
-
-
-
- {formatCurrency(market.totalVolume)} -
-
총 거래량
+ {/* Yes/No Buttons */} +
+ + +
+ + {/* Market Info */} +
+
+
+ + + {formatCurrency(market.totalVolume)} Vol. +
-
- {market.totalBets} -
-
총 베팅 수
-
-
-
- {formatDate(market.resolutionDate)} -
-
결과 발표일
+ Politics
+
+ + in 3 months +
@@ -356,8 +306,8 @@ export default function Article() { -

관련 예측시장이 없습니다

-

이 기사와 관련된 예측시장이 아직 생성되지 않았습니다.

+

No Related Prediction Markets

+

There are no prediction markets related to this article yet.

)}