-
-
-
-
-
-
-
-
-
-
-
-
- {children}
-
+
+
+
+
+
+
+
+
+
+
+
+
+ {children}
-
)
diff --git a/src/app/(dashboard)/dashboard/stores/[storeId]/error.tsx b/src/app/(dashboard)/dashboard/stores/[storeId]/error.tsx
index 2dec9664..641acd86 100644
--- a/src/app/(dashboard)/dashboard/stores/[storeId]/error.tsx
+++ b/src/app/(dashboard)/dashboard/stores/[storeId]/error.tsx
@@ -3,7 +3,7 @@
// Error components must be Client Components
import * as React from "react"
-import { ErrorCard } from "@/components/cards/error-card"
+import { ErrorCard } from "@/components/error-card"
export default function UpdateStoreError({
error,
diff --git a/src/app/(dashboard)/dashboard/stores/[storeId]/not-found.tsx b/src/app/(dashboard)/dashboard/stores/[storeId]/not-found.tsx
index 9ed2c6b2..cdc253e8 100644
--- a/src/app/(dashboard)/dashboard/stores/[storeId]/not-found.tsx
+++ b/src/app/(dashboard)/dashboard/stores/[storeId]/not-found.tsx
@@ -1,4 +1,4 @@
-import { ErrorCard } from "@/components/cards/error-card"
+import { ErrorCard } from "@/components/error-card"
import { Shell } from "@/components/shell"
export default function StoreNotFound() {
diff --git a/src/app/(dashboard)/dashboard/stores/[storeId]/products/[productId]/_components/update-product-form.tsx b/src/app/(dashboard)/dashboard/stores/[storeId]/products/[productId]/_components/update-product-form.tsx
index 52d55034..53f689a5 100644
--- a/src/app/(dashboard)/dashboard/stores/[storeId]/products/[productId]/_components/update-product-form.tsx
+++ b/src/app/(dashboard)/dashboard/stores/[storeId]/products/[productId]/_components/update-product-form.tsx
@@ -47,8 +47,8 @@ import {
SelectValue,
} from "@/components/ui/select"
import { Textarea } from "@/components/ui/textarea"
-import { FilesCard } from "@/components/cards/FilesCard"
import { FileUploader } from "@/components/file-uploader"
+import { Files } from "@/components/files"
import { Icons } from "@/components/icons"
interface UpdateProductFormProps {
@@ -279,7 +279,7 @@ export function UpdateProductForm({
{uploadedFiles.length > 0 ? (
-
+
) : null}
)}
diff --git a/src/app/(dashboard)/dashboard/stores/[storeId]/products/[productId]/not-found.tsx b/src/app/(dashboard)/dashboard/stores/[storeId]/products/[productId]/not-found.tsx
index 13a157c3..bfc99e75 100644
--- a/src/app/(dashboard)/dashboard/stores/[storeId]/products/[productId]/not-found.tsx
+++ b/src/app/(dashboard)/dashboard/stores/[storeId]/products/[productId]/not-found.tsx
@@ -1,4 +1,4 @@
-import { ErrorCard } from "@/components/cards/error-card"
+import { ErrorCard } from "@/components/error-card"
import { Shell } from "@/components/shell"
interface ProductNotFoundProps {
diff --git a/src/app/(dashboard)/dashboard/stores/[storeId]/products/new/_components/create-product-form.tsx b/src/app/(dashboard)/dashboard/stores/[storeId]/products/new/_components/create-product-form.tsx
index 9deb58e1..c34db89e 100644
--- a/src/app/(dashboard)/dashboard/stores/[storeId]/products/new/_components/create-product-form.tsx
+++ b/src/app/(dashboard)/dashboard/stores/[storeId]/products/new/_components/create-product-form.tsx
@@ -44,8 +44,8 @@ import {
SelectValue,
} from "@/components/ui/select"
import { Textarea } from "@/components/ui/textarea"
-import { FilesCard } from "@/components/cards/FilesCard"
import { FileUploader } from "@/components/file-uploader"
+import { Files } from "@/components/files"
import { Icons } from "@/components/icons"
interface CreateProductFormProps {
@@ -307,7 +307,7 @@ export function CreateProductForm({
{uploadedFiles.length > 0 ? (
-
+
) : null}
)}
diff --git a/src/app/(dashboard)/dashboard/stores/_components/create-store-dialog.tsx b/src/app/(dashboard)/dashboard/stores/_components/create-store-dialog.tsx
index 0ac336e6..a20dcc97 100644
--- a/src/app/(dashboard)/dashboard/stores/_components/create-store-dialog.tsx
+++ b/src/app/(dashboard)/dashboard/stores/_components/create-store-dialog.tsx
@@ -3,6 +3,7 @@
import * as React from "react"
import { useRouter } from "next/navigation"
import { zodResolver } from "@hookform/resolvers/zod"
+import { HoverCardPortal } from "@radix-ui/react-hover-card"
import { useForm, type UseFormReturn } from "react-hook-form"
import { toast } from "sonner"
@@ -13,11 +14,11 @@ import {
createStoreSchema,
type CreateStoreSchema,
} from "@/lib/validations/store"
-import { useControllableState } from "@/hooks/use-controllable-state"
import { useMediaQuery } from "@/hooks/use-media-query"
import { Button } from "@/components/ui/button"
import {
Dialog,
+ DialogClose,
DialogContent,
DialogDescription,
DialogFooter,
@@ -27,6 +28,7 @@ import {
} from "@/components/ui/dialog"
import {
Drawer,
+ DrawerClose,
DrawerContent,
DrawerDescription,
DrawerFooter,
@@ -50,36 +52,27 @@ import {
import { Input } from "@/components/ui/input"
import { Textarea } from "@/components/ui/textarea"
import { Icons } from "@/components/icons"
-import { ManageSubscriptionForm } from "@/components/manage-subscription-form"
+import { RateLimitAlert } from "@/components/rate-limit-alert"
interface CreateStoreDialogProps
extends React.ComponentPropsWithoutRef