diff --git a/src/pages/admin/PoolBatchesView.tsx b/src/pages/admin/PoolBatchesView.tsx index 95a97da..bc1bf64 100644 --- a/src/pages/admin/PoolBatchesView.tsx +++ b/src/pages/admin/PoolBatchesView.tsx @@ -1,7 +1,10 @@ import { useCallback, useEffect, useMemo, useState, type FormEvent, type KeyboardEvent } from 'react' import { useNavigate } from 'react-router-dom' -import { api, type AdminDashboard, type ApiError, type PoolBatch } from '@/lib/api' -import { imageTag } from '@/lib/utils' +import { api, type AdminDashboard, type ApiError, type ImageOption, type PoolBatch } from '@/lib/api' +import { imageLabel, imageTag } from '@/lib/utils' +import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select' + +const imageSelectContentStyle = { maxHeight: 'min(18rem, var(--radix-select-content-available-height))' } function formatCreatedAt(value: string) { return new Date(value).toLocaleString(undefined, { dateStyle: 'medium', timeStyle: 'short' }) @@ -22,7 +25,7 @@ export function PoolBatchesView() { const navigate = useNavigate() const [batches, setBatches] = useState([]) const [dashboard, setDashboard] = useState(null) - const [images, setImages] = useState>([]) + const [images, setImages] = useState([]) const [label, setLabel] = useState('') const [count, setCount] = useState('') const [selectedImage, setSelectedImage] = useState('') @@ -155,13 +158,23 @@ export function PoolBatchesView() {
- + {images.length > 0 ? ( + + ) : ( + + )}
{error &&

{error}

}