updates on lottery page
This commit is contained in:
parent
0d6af89834
commit
f6d1c4e0d3
|
|
@ -70,7 +70,7 @@ const LotteryPage = () => {
|
||||||
<Link
|
<Link
|
||||||
href="/lottery/auth"
|
href="/lottery/auth"
|
||||||
className="sm:text-textLarge sm:leading-textLarge text-[16px] rounded-full leading-[24px] sm:py-[12px] py-[8px] w-full flex justify-center items-center border-2 border-lightPrimary hover:bg-lightPrimary font-medium text-lightPrimary hover:text-lightOnPrimary disabled:opacity-50 transition-all duration-300">
|
className="sm:text-textLarge sm:leading-textLarge text-[16px] rounded-full leading-[24px] sm:py-[12px] py-[8px] w-full flex justify-center items-center border-2 border-lightPrimary hover:bg-lightPrimary font-medium text-lightPrimary hover:text-lightOnPrimary disabled:opacity-50 transition-all duration-300">
|
||||||
Täzeden girmek
|
Çykmak
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,10 @@
|
||||||
import { useLotteryAuth } from '@/store/useLotteryAuth';
|
import { useLotteryAuth } from '@/store/useLotteryAuth';
|
||||||
|
|
||||||
|
interface IProps {
|
||||||
|
title: string;
|
||||||
|
content: string;
|
||||||
|
}
|
||||||
|
|
||||||
const LotteryRulesSection = () => {
|
const LotteryRulesSection = () => {
|
||||||
const { lotteryData } = useLotteryAuth();
|
const { lotteryData } = useLotteryAuth();
|
||||||
|
|
||||||
|
|
@ -17,13 +22,11 @@ const LotteryRulesSection = () => {
|
||||||
Umumy düzgünler:
|
Umumy düzgünler:
|
||||||
</h3>
|
</h3>
|
||||||
<ul className="list-disc flex flex-col md:gap-4 gap-2 pl-[16px]">
|
<ul className="list-disc flex flex-col md:gap-4 gap-2 pl-[16px]">
|
||||||
{Array(5)
|
{lotteryData?.data.rules?.map((item, i) => (
|
||||||
.fill(' ')
|
<li className="font-small-regular" key={i}>
|
||||||
.map((item, i) => (
|
{item.content}
|
||||||
<li className="font-small-regular" key={i}>
|
</li>
|
||||||
Ilkinji we dogry jogap beren sanawda ilkinji ýeri eýelýär
|
))}
|
||||||
</li>
|
|
||||||
))}
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,10 @@ export interface ILotteryWinner {
|
||||||
winner_no: number;
|
winner_no: number;
|
||||||
ticket: string;
|
ticket: string;
|
||||||
}
|
}
|
||||||
|
export interface ILotteryRule {
|
||||||
|
title: string;
|
||||||
|
content: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface ILotteryData {
|
export interface ILotteryData {
|
||||||
id: number;
|
id: number;
|
||||||
|
|
@ -15,6 +19,7 @@ export interface ILotteryData {
|
||||||
end_time: string;
|
end_time: string;
|
||||||
sms_code: string;
|
sms_code: string;
|
||||||
winners: ILotteryWinner[];
|
winners: ILotteryWinner[];
|
||||||
|
rules: ILotteryRule[] | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ILotteryResponse {
|
export interface ILotteryResponse {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue