mirror of
https://github.com/soconnor0919/lewisburg-coffee.git
synced 2026-02-05 08:06:32 -05:00
feat: Introduce new coffee shop images and remove tRPC integration.
This commit is contained in:
@@ -43,7 +43,13 @@ export default function Drawer({ shop, onClose }: DrawerProps) {
|
||||
{/* Header Image */}
|
||||
<div className="h-56 relative flex-shrink-0 bg-muted/20">
|
||||
{imageLoading && (
|
||||
<div className="absolute inset-0 z-10 flex items-center justify-center">
|
||||
<div
|
||||
className="absolute inset-0 z-10 flex items-center justify-center"
|
||||
style={{
|
||||
maskImage: 'linear-gradient(to bottom, black 50%, transparent 100%)',
|
||||
WebkitMaskImage: 'linear-gradient(to bottom, black 50%, transparent 100%)'
|
||||
}}
|
||||
>
|
||||
<Skeleton className="h-full w-full absolute inset-0" />
|
||||
<Coffee className="h-12 w-12 text-muted-foreground/50 animate-pulse relative z-20" />
|
||||
</div>
|
||||
|
||||
@@ -22,8 +22,9 @@ interface CoffeeShop {
|
||||
interface MapLoaderProps {
|
||||
shops: CoffeeShop[];
|
||||
onShopSelect: (shop: CoffeeShop) => void;
|
||||
selectedShop: CoffeeShop | null;
|
||||
}
|
||||
|
||||
export default function MapLoader({ shops, onShopSelect }: MapLoaderProps) {
|
||||
return <Map shops={shops} onShopSelect={onShopSelect} />;
|
||||
export default function MapLoader({ shops, onShopSelect, selectedShop }: MapLoaderProps) {
|
||||
return <Map shops={shops} onShopSelect={onShopSelect} selectedShop={selectedShop} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user