diff --git a/web/sections/CollectionsPanel.tsx b/web/sections/CollectionsPanel.tsx index 458409c..f2c0aed 100644 --- a/web/sections/CollectionsPanel.tsx +++ b/web/sections/CollectionsPanel.tsx @@ -1,6 +1,6 @@ import { useCallback, useEffect, useRef, useState } from 'react'; import { useSearchParams } from 'react-router'; -import { Boxes, Check, Images, Loader2, Plus, Trash2 } from 'lucide-react'; +import { Boxes, Images, Loader2, Plus, Trash2 } from 'lucide-react'; import { useClient } from 'hooks/useClient'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; @@ -176,14 +176,6 @@ export const CollectionsPanel = () => { await clientRef.current.patch(`/fofos-admin/collections/${selected.id}`, { gallery_id: galleryId }); }); - const chooseCover = (path: string) => - send(async () => { - if (!selected) return; - // Pressing the one already chosen clears it, which is how "no choice, use the first" is reachable - // again without a second control that only does that. - await clientRef.current.patch(`/fofos-admin/collections/${selected.id}`, { - cover: selected.cover === path ? null : path, - }); }); @@ -279,36 +271,20 @@ export const CollectionsPanel = () => { ) : ( <>
- {photos.length} photographs, in the gallery’s order. Click one to make it the main photo. + {photos.length} photographs, in the gallery’s order — the first one leads. Reorder + them in Galleries.
+ {/* Not buttons. Nothing here is a decision — the order is the gallery's and so is which one + leads. Making them look pressable would promise a control that lives elsewhere. */}{photo.name}
-{photo.name}
+