diff --git a/components/lottery/LotteryMain.tsx b/components/lottery/LotteryMain.tsx index 094cd26..84b03ec 100644 --- a/components/lottery/LotteryMain.tsx +++ b/components/lottery/LotteryMain.tsx @@ -51,8 +51,8 @@ const LotteryMain = () => { ) : ( lotteryData?.data && ( -
-
+
+
{ )}
-
+
diff --git a/components/lottery/LotteryWinnersSection.tsx b/components/lottery/LotteryWinnersSection.tsx index bb6aebe..2a1cef0 100644 --- a/components/lottery/LotteryWinnersSection.tsx +++ b/components/lottery/LotteryWinnersSection.tsx @@ -130,13 +130,13 @@ const LotteryWinnersSection = ({ data }: { data: any }) => {
-
+
{winnerSelectingStatus === "not-selected" ? ( { /> )}
-
+
{winners.length > 0 && }
diff --git a/components/lottery/rules/LotteryRulesSection.tsx b/components/lottery/rules/LotteryRulesSection.tsx index 2694204..ca73f86 100644 --- a/components/lottery/rules/LotteryRulesSection.tsx +++ b/components/lottery/rules/LotteryRulesSection.tsx @@ -1,5 +1,6 @@ "use client"; import { useWebsocketLottery } from "@/hooks/useWebSocketLottery"; +import clsx from "clsx"; import { useEffect, useState } from "react"; interface IProps { @@ -57,46 +58,54 @@ const LotteryRulesSection = ({ show = true, data }: IProps) => {
-

- Düzgünleri: -

- -
-
-
    - {data?.data.rules?.map((item: any, i: number) => ( -
  • - {item.title} -
  • - ))} -
+
+
+

+ Düzgünleri: +

+
+
    + {data?.data.rules?.map((item: any, i: number) => ( +
  • + {item.title} +
  • + ))} +
+
-
-

+
+

Gatnaşyjylaryň sany:

-

{totalParticipants}

+
+

{totalParticipants}

+
-

- {show && ( -
-

- Siziň bijeli sanynyz: -

-
    - {data?.user_lottery_numbers.map((item: any, i: number) => ( -
  • - {item} -
  • - ))} -
-
- )} + {show && ( +
+

+ Siziň bijeli sanyňyz: +

+
    + {data?.user_lottery_numbers.map((item: any, i: number) => ( +
  • + {item} +
  • + ))} +
+
+ )} +
diff --git a/components/toss/index.tsx b/components/toss/index.tsx index 1dab014..38761e9 100644 --- a/components/toss/index.tsx +++ b/components/toss/index.tsx @@ -22,9 +22,9 @@ const TossPage = async ({ return ( <> {tossData?.data ? ( -
+
{tossData && ( -
+
-
+