diff --git a/app/(main)/lottery/page.tsx b/app/(main)/lottery/page.tsx index 85a4629..1d136e1 100644 --- a/app/(main)/lottery/page.tsx +++ b/app/(main)/lottery/page.tsx @@ -70,7 +70,7 @@ const LotteryPage = () => { - Täzeden girmek + Çykmak diff --git a/components/lottery/rules/LotteryRulesSection.tsx b/components/lottery/rules/LotteryRulesSection.tsx index ee53d69..7c3e2fa 100644 --- a/components/lottery/rules/LotteryRulesSection.tsx +++ b/components/lottery/rules/LotteryRulesSection.tsx @@ -1,5 +1,10 @@ import { useLotteryAuth } from '@/store/useLotteryAuth'; +interface IProps { + title: string; + content: string; +} + const LotteryRulesSection = () => { const { lotteryData } = useLotteryAuth(); @@ -17,13 +22,11 @@ const LotteryRulesSection = () => { Umumy düzgünler: diff --git a/models/lottery/lottery.model.ts b/models/lottery/lottery.model.ts index fd55a0d..e8e95e4 100644 --- a/models/lottery/lottery.model.ts +++ b/models/lottery/lottery.model.ts @@ -5,6 +5,10 @@ export interface ILotteryWinner { winner_no: number; ticket: string; } +export interface ILotteryRule { + title: string; + content: string; +} export interface ILotteryData { id: number; @@ -15,6 +19,7 @@ export interface ILotteryData { end_time: string; sms_code: string; winners: ILotteryWinner[]; + rules: ILotteryRule[] | null; } export interface ILotteryResponse {