Refactor sort UI

This commit is contained in:
gpt-engineer-app[bot]
2025-10-02 14:08:04 +00:00
parent 19a191e6a1
commit 0a87a72931

View File

@@ -1,5 +1,5 @@
import { useState, useEffect } from 'react';
import { Camera, Upload, LogIn, Settings } from 'lucide-react';
import { Camera, Upload, LogIn, Settings, ArrowUpDown } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { Card, CardContent } from '@/components/ui/card';
import {
@@ -173,7 +173,7 @@ export function EntityPhotoGallery({
{/* Sort Dropdown */}
{photos.length > 0 && (
<div className="flex items-center gap-2">
<span className="text-sm text-muted-foreground">Sort by:</span>
<ArrowUpDown className="w-4 h-4 text-muted-foreground" />
<Select value={sortBy} onValueChange={(value: 'newest' | 'oldest') => setSortBy(value)}>
<SelectTrigger className="w-full sm:w-[180px]">
<SelectValue />