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

View File

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

View File

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

View File

@ -3,7 +3,7 @@ import LotteryWinner from './LotteryWinner';
const LotteryWinnersList = ({ winners }: { winners: number[] }) => { const LotteryWinnersList = ({ winners }: { winners: number[] }) => {
return ( return (
<div className="w-full md:p-8 p-6"> <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"> <div className="flex flex-col gap-2 md:pb-4 pb-3 border-b border-lightOutlineVariant">
<h4 className="font-heading-3-regular">Results</h4> <h4 className="font-heading-3-regular">Results</h4>
<p className="font-base-medium">The results after each stage will be shown here.</p> <p className="font-base-medium">The results after each stage will be shown here.</p>