This commit is contained in:
Kakabay 2024-12-16 19:36:10 +05:00
parent 695a305f25
commit 7b786b5953
4 changed files with 11 additions and 11 deletions

View File

@ -82,10 +82,10 @@ const page = () => {
</div>
)}
<div className="bg-lightSurfaceContainer flex flex-col">
<div className="bg-lightSurfaceContainer flex flex-col rounded-[12px]">
<LotteryCountDown
startDate={'2024-12-14 16:15:00'}
endDate={'2024-12-15 16:00:00'}
startDate={'2024-12-16 18:09:00'}
endDate={'2024-12-25 16:00:00'}
lotteryStatus={lotteryStatus}
setLotteryStatus={setLotteryStatus}
/>
@ -100,16 +100,16 @@ const page = () => {
{lotteryStatus === 'not-started' && (
<div className="container">
<LotteryCountDown
startDate={'2024-12-14 16:15:00'}
endDate={'2024-12-15 16:00:00'}
startDate={'2024-12-16 18:09:00'}
endDate={'2024-12-25 16:00:00'}
lotteryStatus={lotteryStatus}
setLotteryStatus={setLotteryStatus}
/>
</div>
)}
<LotteryCountDownAllert
startDate={'2024-12-14 16:15:00'}
endDate={'2024-12-15 16:00:00'}
startDate={'2024-12-16 18:09:00'}
endDate={'2024-12-25 16:00:00'}
lotteryStatus={lotteryStatus}
setLotteryStatus={setLotteryStatus}
/>

View File

@ -5,7 +5,7 @@ import SpinWheel from './spinWheel/SpinWheel';
import { useState } from 'react';
const LotteryWinnersSection = () => {
const [winners, setWinners] = useState<number[]>([1, 2, 3, 4, 5, 5, 5, 5]);
const [winners, setWinners] = useState<number[]>([1]);
return (
<section>

View File

@ -119,7 +119,7 @@ const SpinWheel = ({ setWinners }: IProps) => {
</div>
{/* Spin Button */}
{/* <button
<button
onClick={handleSpinClick}
disabled={isSpinning || isCountingDown}
className={`mt-6 px-6 py-3 rounded-full text-white font-bold ${
@ -132,7 +132,7 @@ const SpinWheel = ({ setWinners }: IProps) => {
: isSpinning
? 'Spinning...'
: 'Spin the Wheel'}
</button> */}
</button>
</div>
);
};

View File

@ -3,7 +3,7 @@ import LotteryWinner from './LotteryWinner';
const LotteryWinnersList = ({ winners }: { winners: number[] }) => {
return (
<div className="w-full md:p-8 p-6">
<div className="flex flex-col w-full gap-4 md:max-h-[548px] sm:max-h-[276px] max-h-[438px] h-full overflow-y-scroll pr-2">
<div className="flex flex-col w-full gap-4 md:max-h-[548px] sm:max-h-[276px] max-h-[438px] h-full overflow-y-auto pr-2">
<div className="flex flex-col gap-2 md:pb-4 pb-3 border-b border-lightOutlineVariant">
<h4 className="font-heading-3-regular">Results</h4>
<p className="font-base-medium">The results after each stage will be shown here.</p>