From c2223e8361400f207163ec149e6b0a2116e898b6 Mon Sep 17 00:00:00 2001
From: Kakabay <2kakabayashyrberdyew@gmail.com>
Date: Mon, 14 Oct 2024 19:17:35 +0500
Subject: [PATCH] commit
---
components/prizes/PrizeCard.tsx | 166 ++++++++++++-------------
components/ui/dialog.tsx | 206 ++++++++++++++++----------------
2 files changed, 186 insertions(+), 186 deletions(-)
diff --git a/components/prizes/PrizeCard.tsx b/components/prizes/PrizeCard.tsx
index 0f093ad..05e8c41 100644
--- a/components/prizes/PrizeCard.tsx
+++ b/components/prizes/PrizeCard.tsx
@@ -1,15 +1,15 @@
import { cn } from '@/lib/utils';
import Image from 'next/image';
-import {
- Dialog,
- DialogClose,
- DialogContent,
- DialogDescription,
- DialogFooter,
- DialogHeader,
- DialogTitle,
- DialogTrigger,
-} from '@/components/ui/dialog';
+// import {
+// Dialog,
+// DialogClose,
+// DialogContent,
+// DialogDescription,
+// DialogFooter,
+// DialogHeader,
+// DialogTitle,
+// DialogTrigger,
+// } from '@/components/ui/dialog';
import { Dispatch, SetStateAction, useState } from 'react';
import axios from 'axios';
import { useMutation } from '@tanstack/react-query';
@@ -77,81 +77,81 @@ const PrizeCard = ({
}
};
- return (
-
-
-
-
-
-
- {title}
-
-
- {description}
-
+ // return (
+ //
+ //
+ //
+ //
+ //
+ //
+ // {title}
+ //
+ //
+ // {description}
+ //
- {variant === 'default' ? (
- <>
- {/* DialogTrigger to open the dialog */}
-
-
-
- );
+ // {/* 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 bd4d5aa..a7192a8 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,
+// };