fix: Use native img tags for admin pages
- Replace next/image with native img tags in admin bottles, splits, tastings - Remove hardcoded Supabase hostname from next.config.mjs - Native img works with any hostname without config changes on deploy
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
import { useState, useMemo } from 'react';
|
||||
import { Search, User, Star, Wine, MessageSquare } from 'lucide-react';
|
||||
import Image from 'next/image';
|
||||
|
||||
interface Tasting {
|
||||
id: string;
|
||||
@@ -139,11 +138,9 @@ export default function AdminTastingsList({ tastings }: AdminTastingsListProps)
|
||||
{/* Bottle Image */}
|
||||
<div className="w-16 h-16 rounded-xl overflow-hidden bg-zinc-800 flex-shrink-0">
|
||||
{tasting.bottle?.image_url ? (
|
||||
<Image
|
||||
<img
|
||||
src={tasting.bottle.image_url}
|
||||
alt={tasting.bottle.name || 'Bottle'}
|
||||
width={64}
|
||||
height={64}
|
||||
className="w-full h-full object-cover"
|
||||
/>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user