From 695a305f25284b612e2ce5199f28ca86a91af8d5 Mon Sep 17 00:00:00 2001 From: Kakabay <2kakabayashyrberdyew@gmail.com> Date: Fri, 13 Dec 2024 16:56:06 +0500 Subject: [PATCH] croll bar added to the winner list --- app/(main)/lottery/active/page.tsx | 14 +++++++------ components/lottery/LotteryWinnersSection.tsx | 2 +- .../lottery/winners/LotteryWinnersList.tsx | 20 ++++++++++--------- 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/app/(main)/lottery/active/page.tsx b/app/(main)/lottery/active/page.tsx index d3c305f..7c7dccc 100644 --- a/app/(main)/lottery/active/page.tsx +++ b/app/(main)/lottery/active/page.tsx @@ -98,12 +98,14 @@ const page = () => {
{lotteryStatus === 'not-started' && ( - +
+ +
)} { - const [winners, setWinners] = useState([]); + const [winners, setWinners] = useState([1, 2, 3, 4, 5, 5, 5, 5]); return (
diff --git a/components/lottery/winners/LotteryWinnersList.tsx b/components/lottery/winners/LotteryWinnersList.tsx index 83a74e7..10e15bf 100644 --- a/components/lottery/winners/LotteryWinnersList.tsx +++ b/components/lottery/winners/LotteryWinnersList.tsx @@ -2,16 +2,18 @@ import LotteryWinner from './LotteryWinner'; const LotteryWinnersList = ({ winners }: { winners: number[] }) => { return ( -
-
-

Results

-

The results after each stage will be shown here.

-
+
+
+
+

Results

+

The results after each stage will be shown here.

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