diff --git a/app/(main)/lottery/[lottery_id]/page.tsx b/app/(main)/lottery/[lottery_id]/page.tsx deleted file mode 100644 index bec613e..0000000 --- a/app/(main)/lottery/[lottery_id]/page.tsx +++ /dev/null @@ -1,73 +0,0 @@ -import LotteryWinnersSection from '@/components/lottery/LotteryWinnersSection'; -import LotteryCountDown from '@/components/lottery/countDown/LotteryCountDown'; -import Image from 'next/image'; - -interface IParams { - params: { - lottery_id: string; - }; -} - -const page = ({ params }: IParams) => { - return ( -
-
-
-
-

Bije

-
- banner -
- - -
-
-
- - - -
-
-
-

Lotereýanyň duzgunleri:

-
-
-

Umumy düzgünler:

-
    - {Array(5) - .fill(' ') - .map((item, i) => ( -
  • - Ilkinji we dogry jogap beren sanawda ilkinji ýeri eýelýär -
  • - ))} -
-
- -
-

Üns beriň:

-
    - {Array(1) - .fill(' ') - .map((item, i) => ( -
  • - SMS = 1 manat -
  • - ))} -
-
-
-
-
-
-
- ); -}; - -export default page; diff --git a/app/(main)/lottery/active/page.tsx b/app/(main)/lottery/active/page.tsx index 81e0be2..18cd3a7 100644 --- a/app/(main)/lottery/active/page.tsx +++ b/app/(main)/lottery/active/page.tsx @@ -4,6 +4,7 @@ import { Queries } from '@/api/queries'; import Loader from '@/components/Loader'; import LotteryWinnersSection from '@/components/lottery/LotteryWinnersSection'; import RollingCounter from '@/components/lottery/RollingCounter/RollingCounter'; +import RollingCounterWorking from '@/components/lottery/RollingCounter/RollingCounterWorking'; import LotteryCountDown from '@/components/lottery/countDown/LotteryCountDown'; import LotteryCountDownAllert from '@/components/lottery/countDown/countDownAllert/LotteryCountDownAllert'; import LotteryForm from '@/components/lottery/form/LotteryForm'; @@ -18,14 +19,23 @@ const page = () => { const [lotteryStatus, setLotteryStatus] = useState<'not-started' | 'started' | 'ended'>( 'not-started', ); + const [currentNumber, setCurrentNumber] = useState('22-22-22-22-22'); - useEffect(() => { - Queries.getLottery() - .then((res) => { - setData(res); - }) - .finally(() => setIsLoading(false)); - }, []); + // useEffect(() => { + // Queries.getLottery() + // .then((res) => { + // setData(res); + // }) + // .finally(() => setIsLoading(false)); + // }, []); + + // useEffect(() => { + // const timer = setTimeout(() => { + // setCurrentNumber('81-34-52-35-61'); + // }, 10000); // 15 seconds + + // return () => clearTimeout(timer); // Cleanup on unmount + // }, []); // if (isLoading) { // return ( @@ -37,7 +47,8 @@ const page = () => { return (
- + {/* */} + {data && (