From 16eb6c5094a618f94b30002c74190ac5cacd9966 Mon Sep 17 00:00:00 2001 From: iamkiddy Date: Sun, 27 Apr 2025 21:05:40 +0000 Subject: [PATCH] Refactor marketplace components: reintroduce ArtistContent, QuickActions, SearchBar, and update ArtistsPage and layout --- .../artists/_components/Artist_Content.tsx | 3 +- .../artists/_components/Quick_Actions.tsx | 0 .../artists/_components/SearchBar.tsx | 0 .../marketplace/artists/page.tsx | 0 app/{creator => }/marketplace/layout.tsx | 0 pnpm-lock.yaml | 52 +++++++------------ 6 files changed, 19 insertions(+), 36 deletions(-) rename app/{creator => }/marketplace/artists/_components/Artist_Content.tsx (98%) rename app/{creator => }/marketplace/artists/_components/Quick_Actions.tsx (100%) rename app/{creator => }/marketplace/artists/_components/SearchBar.tsx (100%) rename app/{creator => }/marketplace/artists/page.tsx (100%) rename app/{creator => }/marketplace/layout.tsx (100%) diff --git a/app/creator/marketplace/artists/_components/Artist_Content.tsx b/app/marketplace/artists/_components/Artist_Content.tsx similarity index 98% rename from app/creator/marketplace/artists/_components/Artist_Content.tsx rename to app/marketplace/artists/_components/Artist_Content.tsx index 1dfabe9..29cdc24 100644 --- a/app/creator/marketplace/artists/_components/Artist_Content.tsx +++ b/app/marketplace/artists/_components/Artist_Content.tsx @@ -1,9 +1,8 @@ import { Input } from '@/components/ui/input'; -import { Search, Heart } from 'lucide-react'; +import { Heart } from 'lucide-react'; import Image from 'next/image'; import { Checkbox } from '@/components/ui/checkbox'; import { Button } from '@/components/ui/button'; -import SearchBar from './SearchBar'; const mockItems = [ { diff --git a/app/creator/marketplace/artists/_components/Quick_Actions.tsx b/app/marketplace/artists/_components/Quick_Actions.tsx similarity index 100% rename from app/creator/marketplace/artists/_components/Quick_Actions.tsx rename to app/marketplace/artists/_components/Quick_Actions.tsx diff --git a/app/creator/marketplace/artists/_components/SearchBar.tsx b/app/marketplace/artists/_components/SearchBar.tsx similarity index 100% rename from app/creator/marketplace/artists/_components/SearchBar.tsx rename to app/marketplace/artists/_components/SearchBar.tsx diff --git a/app/creator/marketplace/artists/page.tsx b/app/marketplace/artists/page.tsx similarity index 100% rename from app/creator/marketplace/artists/page.tsx rename to app/marketplace/artists/page.tsx diff --git a/app/creator/marketplace/layout.tsx b/app/marketplace/layout.tsx similarity index 100% rename from app/creator/marketplace/layout.tsx rename to app/marketplace/layout.tsx diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 83ab977..8fae87f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,15 +11,15 @@ importers: '@radix-ui/react-avatar': specifier: ^1.1.7 version: 1.1.7(@types/react-dom@19.1.2(@types/react@19.1.2))(@types/react@19.1.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0) + '@radix-ui/react-checkbox': + specifier: ^1.2.3 + version: 1.2.3(@types/react-dom@19.1.2(@types/react@19.1.2))(@types/react@19.1.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0) '@radix-ui/react-context-menu': specifier: ^2.2.12 version: 2.2.12(@types/react-dom@19.1.2(@types/react@19.1.2))(@types/react@19.1.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0) '@radix-ui/react-hover-card': specifier: ^1.1.11 version: 1.1.11(@types/react-dom@19.1.2(@types/react@19.1.2))(@types/react@19.1.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0) - '@radix-ui/react-checkbox': - specifier: ^1.2.3 - version: 1.2.3(@types/react-dom@19.1.2(@types/react@19.1.2))(@types/react@19.1.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0) '@radix-ui/react-slot': specifier: ^1.2.0 version: 1.2.0(@types/react@19.1.2)(react@19.1.0) @@ -662,6 +662,15 @@ packages: '@types/react': optional: true + '@radix-ui/react-use-previous@1.1.1': + resolution: {integrity: sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@radix-ui/react-use-rect@1.1.1': resolution: {integrity: sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w==} peerDependencies: @@ -683,24 +692,6 @@ packages: '@radix-ui/rect@1.1.1': resolution: {integrity: sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==} - '@radix-ui/react-use-previous@1.1.1': - resolution: {integrity: sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==} - peerDependencies: - '@types/react': '*' - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - '@types/react': - optional: true - - '@radix-ui/react-use-size@1.1.1': - resolution: {integrity: sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==} - peerDependencies: - '@types/react': '*' - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - '@types/react': - optional: true - '@rtsao/scc@1.1.0': resolution: {integrity: sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==} @@ -2721,6 +2712,12 @@ snapshots: optionalDependencies: '@types/react': 19.1.2 + '@radix-ui/react-use-previous@1.1.1(@types/react@19.1.2)(react@19.1.0)': + dependencies: + react: 19.1.0 + optionalDependencies: + '@types/react': 19.1.2 + '@radix-ui/react-use-rect@1.1.1(@types/react@19.1.2)(react@19.1.0)': dependencies: '@radix-ui/rect': 1.1.1 @@ -2737,19 +2734,6 @@ snapshots: '@radix-ui/rect@1.1.1': {} - '@radix-ui/react-use-previous@1.1.1(@types/react@19.1.2)(react@19.1.0)': - dependencies: - react: 19.1.0 - optionalDependencies: - '@types/react': 19.1.2 - - '@radix-ui/react-use-size@1.1.1(@types/react@19.1.2)(react@19.1.0)': - dependencies: - '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.1.2)(react@19.1.0) - react: 19.1.0 - optionalDependencies: - '@types/react': 19.1.2 - '@rtsao/scc@1.1.0': {} '@rushstack/eslint-patch@1.11.0': {}