diff --git a/app/components/MyLayout.tsx b/app/components/MyLayout.tsx index 22cfcc1..bd7a463 100644 --- a/app/components/MyLayout.tsx +++ b/app/components/MyLayout.tsx @@ -41,7 +41,8 @@ const MyLayout = React.memo(({ children }: { children: React.ReactNode }) => { p.startsWith("/collection/") || p === "/cart" || p.startsWith("/cart/") || - p === "/profile"; + p === "/sellers" || + p.startsWith("/profile"); // Auth pages get a full-width desktop canvas (so they can center their own // card) but no shopping header/footer. const isAuth = p === "/login" || p === "/logout"; diff --git a/app/components/ProfilePagesHeader.tsx b/app/components/ProfilePagesHeader.tsx index da72667..a09c11f 100644 --- a/app/components/ProfilePagesHeader.tsx +++ b/app/components/ProfilePagesHeader.tsx @@ -20,7 +20,7 @@ const ProfilePagesHeader = memo(function ProfilePagesHeader({ }, [navigate]); return ( -
+
{!hideBackButton && ( -

- حساب کاربری -

- +
+ {/* Desktop: welcome (the sidebar provides the menu) */} +
+ +

حساب کاربری

+

یک گزینه را از منوی کناری انتخاب کنید

+
+ + {/* Mobile: account menu */} +
+
@@ -157,6 +163,7 @@ export default function Profile() { setLogoutModalOpen(true); }} /> +
+ location.pathname === to || location.pathname.startsWith(to + "/"); + + return ( +
+ {/* Desktop sidebar */} + + + {/* Page content */} +
+ +
+
+ ); +} diff --git a/app/routes/sellers.tsx b/app/routes/sellers.tsx index 3d17a6c..8d69cb7 100644 --- a/app/routes/sellers.tsx +++ b/app/routes/sellers.tsx @@ -13,7 +13,7 @@ export default function Sellers() { // Loading skeleton const SellersSkeleton = () => ( -
+
{Array.from({ length: 8 }).map((_, index) => ( ))} @@ -61,8 +61,8 @@ export default function Sellers() { return (
- {/* Header */} -
+ {/* Header (mobile) */} +
{/* Content */} -
+
+

+ فروشگاه‌ها +

{status === "pending" ? ( ) : status === "error" ? ( @@ -79,11 +82,11 @@ export default function Sellers() { ) : allSellers.length === 0 ? ( ) : ( -
+
{allSellers.map((seller, index) => ( {/* Background Image */} @@ -98,6 +101,16 @@ export default function Sellers() {
)} + {seller.sellerName ? ( + <> +
+
+ + {seller.sellerName} + +
+ + ) : null} ))}