diff --git a/app/src/app/(tabs)/browse.tsx b/app/src/app/(tabs)/browse.tsx index 5e8ae34..480474f 100644 --- a/app/src/app/(tabs)/browse.tsx +++ b/app/src/app/(tabs)/browse.tsx @@ -6,6 +6,8 @@ import { Chip, SearchField, Switch, Typography, useThemeColor } from "heroui-nat import type { Currency, Product } from "@/data/mock"; import { PRODUCTS } from "@/data/mock"; import { ListingCard } from "@/components/ListingCard"; +import { PageContainer } from "@/components/PageContainer"; +import { MICRO_LABEL_CLASS } from "@/lib/typography"; type CurrencyFilter = "all" | Currency; type SortMode = "newest" | "priceLow" | "priceHigh"; @@ -38,123 +40,115 @@ export default function BrowseTab(): JSX.Element { return ( - - - - - - - - + + + + + + + + + - - - Currency - - setCurrencyFilter("all")} - > - All - - setCurrencyFilter("SOL")} - > - SOL - - setCurrencyFilter("USDC")} - > - USDC - - - - Sort - - setSortMode("newest")} - > - Newest - - setSortMode("priceLow")} - > - Price ↑ - - setSortMode("priceHigh")} - > - Price ↓ - - - - - - - - In stock only - - - - setViewMode("list")} - className={`h-7 w-8 items-center justify-center rounded-md ${ - viewMode === "list" ? "bg-accent" : "" - }`} + + Currency + setCurrencyFilter("all")} > - - - setViewMode("grid")} - className={`h-7 w-8 items-center justify-center rounded-md ${ - viewMode === "grid" ? "bg-accent" : "" - }`} + All + + setCurrencyFilter("SOL")} > - - + SOL + + setCurrencyFilter("USDC")} + > + USDC + + + Sort + setSortMode("newest")} + > + Newest + + setSortMode("priceLow")} + > + Price ↑ + + setSortMode("priceHigh")} + > + Price ↓ + - + + + + + + In stock only + + + + setViewMode("list")} + className={`h-7 w-8 items-center justify-center rounded-md ${ + viewMode === "list" ? "bg-accent" : "" + }`} + > + + + setViewMode("grid")} + className={`h-7 w-8 items-center justify-center rounded-md ${ + viewMode === "grid" ? "bg-accent" : "" + }`} + > + + + + + - {viewMode === "list" ? ( - - {products.map((product) => ( - - ))} - - ) : ( - - {products.map((product) => ( - - ))} - - )} + + {viewMode === "list" ? ( + + {products.map((product) => ( + + ))} + + ) : ( + + {products.map((product) => ( + + ))} + + )} + );