diff --git a/app/(prizes)/prizes/[user_id]/page.tsx b/app/(prizes)/prizes/[user_id]/page.tsx index 6254e18..58b4c80 100644 --- a/app/(prizes)/prizes/[user_id]/page.tsx +++ b/app/(prizes)/prizes/[user_id]/page.tsx @@ -46,45 +46,45 @@ const PrizesPage = ({ params }: { params: { user_id: string } }) => { return null; // Return null since the redirect will occur } - // return ( - //
- //
- //
- //

- // {data.data.title} - //

- //

- // Поздравляю с победой в викторине! Вы стали победителем и получаете возможность выбрать - // подарок по своему выбору. Пожалуйста, ознакомьтесь с доступными вариантами подарков и - // сообщите нам ваше предпочтение. С нетерпением ждем вашего выбора, чтобы доставить вам - // заслуженный приз! - //

- //
- //

- // Есть вопросы? Обратись XYXYXY! - //

- //
- //
- // {data.data.gifts && - // data.data.gifts.map((prize, i) => ( - // - // ))} - //
- //
- // ); + return ( +
+
+
+

+ {data.data.title} +

+

+ Поздравляю с победой в викторине! Вы стали победителем и получаете возможность выбрать + подарок по своему выбору. Пожалуйста, ознакомьтесь с доступными вариантами подарков и + сообщите нам ваше предпочтение. С нетерпением ждем вашего выбора, чтобы доставить вам + заслуженный приз! +

+
+

+ Есть вопросы? Обратись XYXYXY! +

+
+
+ {data.data.gifts && + data.data.gifts.map((prize, i) => ( + + ))} +
+
+ ); }; export default PrizesPage; diff --git a/app/(prizes)/prizes/auth/page.tsx b/app/(prizes)/prizes/auth/page.tsx index a6d2392..38764e7 100644 --- a/app/(prizes)/prizes/auth/page.tsx +++ b/app/(prizes)/prizes/auth/page.tsx @@ -2,13 +2,13 @@ import SmsForm from '@/components/prizes/SmsForm'; import React from 'react'; const page = () => { - // return ( - //
- //
- // - //
- //
- // ); + return ( +
+
+ +
+
+ ); }; export default page; diff --git a/components/MobileMenu.tsx b/components/MobileMenu.tsx index e67a281..87d3bbe 100644 --- a/components/MobileMenu.tsx +++ b/components/MobileMenu.tsx @@ -167,7 +167,7 @@ const MobileMenu = () => { }}> TV market - {/* { onClickCloseBurgerHandler(); }}> Sowgatlar - */} + diff --git a/components/Nav.tsx b/components/Nav.tsx index 95f2f08..2287086 100644 --- a/components/Nav.tsx +++ b/components/Nav.tsx @@ -140,13 +140,13 @@ const Nav = () => { onClick={() => setDropDownOpened(false)}> SMS ulgamy - {/* setDropDownOpened(false)}> Sowgatlar - */} + diff --git a/components/prizes/PrizeCard.tsx b/components/prizes/PrizeCard.tsx index 05e8c41..5a18668 100644 --- a/components/prizes/PrizeCard.tsx +++ b/components/prizes/PrizeCard.tsx @@ -77,81 +77,81 @@ const PrizeCard = ({ } }; - // return ( - //
- //
- // prize - //
- //
- //

- // {title} - //

- //

- // {description} - //

+ return ( +
+
+ prize +
+
+

+ {title} +

+

+ {description} +

- // {variant === 'default' ? ( - // <> - // {/* DialogTrigger to open the dialog */} - //
- // - // - // - // + {variant === 'default' ? ( + <> + {/* DialogTrigger to open the dialog */} +
+ + + + - // {/* DialogContent that shows loading or response */} - // - // - // {dialogTitle} - // {dialogDescription} - // - // {dialogTitle !== 'Загрузка...' && ( - // - // - // - // - // - // )} - // - // - //
- // - // ) : variant === 'disabled' ? ( - // - // ) : variant === 'selected' ? ( - // - // ) : null} - //
- //
- // ); + {/* DialogContent that shows loading or response */} + + + {dialogTitle} + {dialogDescription} + + {dialogTitle !== 'Загрузка...' && ( + + + + + + )} + + +
+ + ) : variant === 'disabled' ? ( + + ) : variant === 'selected' ? ( + + ) : null} +
+
+ ); }; export default PrizeCard; diff --git a/components/ui/dialog.tsx b/components/ui/dialog.tsx index a7192a8..bd4d5aa 100644 --- a/components/ui/dialog.tsx +++ b/components/ui/dialog.tsx @@ -1,116 +1,116 @@ -// 'use client'; +'use client'; -// import * as React from 'react'; -// import * as DialogPrimitive from '@radix-ui/react-dialog'; -// import { X } from 'lucide-react'; +import * as React from 'react'; +import * as DialogPrimitive from '@radix-ui/react-dialog'; +import { X } from 'lucide-react'; -// import { cn } from '@/lib/utils'; +import { cn } from '@/lib/utils'; -// const Dialog = DialogPrimitive.Root; +const Dialog = DialogPrimitive.Root; -// const DialogTrigger = DialogPrimitive.Trigger; +const DialogTrigger = DialogPrimitive.Trigger; -// const DialogPortal = DialogPrimitive.Portal; +const DialogPortal = DialogPrimitive.Portal; -// const DialogClose = DialogPrimitive.Close; +const DialogClose = DialogPrimitive.Close; -// const DialogOverlay = React.forwardRef< -// React.ElementRef, -// React.ComponentPropsWithoutRef -// >(({ className, ...props }, ref) => ( -// -// )); -// DialogOverlay.displayName = DialogPrimitive.Overlay.displayName; +const DialogOverlay = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)); +DialogOverlay.displayName = DialogPrimitive.Overlay.displayName; -// const DialogContent = React.forwardRef< -// React.ElementRef, -// React.ComponentPropsWithoutRef -// >(({ className, children, ...props }, ref) => ( -// -// -// -// {children} -// -// -// -// -// Close -// -// -// -// )); -// DialogContent.displayName = DialogPrimitive.Content.displayName; +const DialogContent = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, children, ...props }, ref) => ( + + + + {children} + + + + + Close + + + +)); +DialogContent.displayName = DialogPrimitive.Content.displayName; -// const DialogHeader = ({ className, ...props }: React.HTMLAttributes) => ( -//
-// ); -// DialogHeader.displayName = 'DialogHeader'; +const DialogHeader = ({ className, ...props }: React.HTMLAttributes) => ( +
+); +DialogHeader.displayName = 'DialogHeader'; -// const DialogFooter = ({ className, ...props }: React.HTMLAttributes) => ( -//
-// ); -// DialogFooter.displayName = 'DialogFooter'; +const DialogFooter = ({ className, ...props }: React.HTMLAttributes) => ( +
+); +DialogFooter.displayName = 'DialogFooter'; -// const DialogTitle = React.forwardRef< -// React.ElementRef, -// React.ComponentPropsWithoutRef -// >(({ className, ...props }, ref) => ( -// -// )); -// DialogTitle.displayName = DialogPrimitive.Title.displayName; +const DialogTitle = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)); +DialogTitle.displayName = DialogPrimitive.Title.displayName; -// const DialogDescription = React.forwardRef< -// React.ElementRef, -// React.ComponentPropsWithoutRef -// >(({ className, ...props }, ref) => ( -// -// )); -// DialogDescription.displayName = DialogPrimitive.Description.displayName; +const DialogDescription = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)); +DialogDescription.displayName = DialogPrimitive.Description.displayName; -// export { -// Dialog, -// DialogPortal, -// DialogOverlay, -// DialogClose, -// DialogTrigger, -// DialogContent, -// DialogHeader, -// DialogFooter, -// DialogTitle, -// DialogDescription, -// }; +export { + Dialog, + DialogPortal, + DialogOverlay, + DialogClose, + DialogTrigger, + DialogContent, + DialogHeader, + DialogFooter, + DialogTitle, + DialogDescription, +};