diff --git a/app/(main)/lottery/active/page.tsx b/app/(main)/lottery/active/page.tsx index b1a6097..d3c305f 100644 --- a/app/(main)/lottery/active/page.tsx +++ b/app/(main)/lottery/active/page.tsx @@ -35,7 +35,7 @@ const page = () => { } return ( -
+
{data && (
@@ -82,10 +82,10 @@ const page = () => {
)} -
+
@@ -99,15 +99,15 @@ const page = () => {
{lotteryStatus === 'not-started' && ( )} diff --git a/components/lottery/LotteryWinnersSection.tsx b/components/lottery/LotteryWinnersSection.tsx index 0d012eb..2975ede 100644 --- a/components/lottery/LotteryWinnersSection.tsx +++ b/components/lottery/LotteryWinnersSection.tsx @@ -10,12 +10,12 @@ const LotteryWinnersSection = () => { return (
-
+
{/* Winners */} {/* Sping the wheel */} -
+
diff --git a/components/lottery/countDown/LotteryCountDown.tsx b/components/lottery/countDown/LotteryCountDown.tsx index 5c21de3..0fe4473 100644 --- a/components/lottery/countDown/LotteryCountDown.tsx +++ b/components/lottery/countDown/LotteryCountDown.tsx @@ -44,9 +44,11 @@ const LotteryCountDown: React.FC = ({ return () => clearInterval(timer); // Clean up interval on component unmount }, [startDate, endDate, lotteryStatus, setLotteryStatus]); + console.log(lotteryStatus); + return ( -
-

+
+

{lotteryStatus === 'started' ? 'Bije dowam edýär' : lotteryStatus === 'ended' diff --git a/components/lottery/form/LotteryForm.tsx b/components/lottery/form/LotteryForm.tsx index c3f1bbc..25d182a 100644 --- a/components/lottery/form/LotteryForm.tsx +++ b/components/lottery/form/LotteryForm.tsx @@ -19,7 +19,7 @@ const LotteryForm = () => {

-
diff --git a/components/lottery/rules/LotteryRulesSection.tsx b/components/lottery/rules/LotteryRulesSection.tsx index c86c003..8fc2bd8 100644 --- a/components/lottery/rules/LotteryRulesSection.tsx +++ b/components/lottery/rules/LotteryRulesSection.tsx @@ -2,12 +2,16 @@ const LotteryRulesSection = () => { return (
-
-

Lotereýanyň duzgunleri:

+
+

+ Lotereýanyň duzgunleri: +

-
-

Umumy düzgünler:

-
    +
    +

    + Umumy düzgünler: +

    +
      {Array(5) .fill(' ') .map((item, i) => ( @@ -18,9 +22,9 @@ const LotteryRulesSection = () => {
    -
    -

    Üns beriň:

    -
      +
      +

      Üns beriň:

      +
        {Array(1) .fill(' ') .map((item, i) => ( diff --git a/components/lottery/spinWheel/SpinWheel.tsx b/components/lottery/spinWheel/SpinWheel.tsx index b96ae75..61f9a35 100644 --- a/components/lottery/spinWheel/SpinWheel.tsx +++ b/components/lottery/spinWheel/SpinWheel.tsx @@ -82,14 +82,14 @@ const SpinWheel = ({ setWinners }: IProps) => { />
      )} -
      +
      {/* Wheel triangle */} wheel {/* Wheel */} @@ -111,15 +111,15 @@ const SpinWheel = ({ setWinners }: IProps) => {
      {/* Countdown */} -
      - +
      + {countdown}
      {/* Spin Button */} - + */}
      ); }; diff --git a/components/lottery/winners/LotteryWinner.tsx b/components/lottery/winners/LotteryWinner.tsx index c551b8f..6c99bb8 100644 --- a/components/lottery/winners/LotteryWinner.tsx +++ b/components/lottery/winners/LotteryWinner.tsx @@ -18,8 +18,10 @@ const LotteryWinner = ({ index, number }: IProps) => { opacity: 1, translateY: 0, }} - className="flex flex-col gap-2 pb-4 last:border-none border-b border-lightOutlineVariant"> -

      The winner of the {index + 1} stage:

      + className="flex flex-col gap-2 md:pb-4 pb-3 last:border-none border-b border-lightOutlineVariant"> +

      + The winner of the {index + 1} stage: +

      8 XX XX-XX-XX

      ); diff --git a/components/lottery/winners/LotteryWinnersList.tsx b/components/lottery/winners/LotteryWinnersList.tsx index 40fc344..83a74e7 100644 --- a/components/lottery/winners/LotteryWinnersList.tsx +++ b/components/lottery/winners/LotteryWinnersList.tsx @@ -2,15 +2,17 @@ import LotteryWinner from './LotteryWinner'; const LotteryWinnersList = ({ winners }: { winners: number[] }) => { return ( -
      -
      +
      +

      Results

      The results after each stage will be shown here.

      - {winners.map((_, index) => ( - - ))} +
      + {winners.map((_, index) => ( + + ))} +
      ); };