mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 10:51:12 -05:00
Refactor sort UI
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { useState, useEffect } from 'react';
|
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 { Button } from '@/components/ui/button';
|
||||||
import { Card, CardContent } from '@/components/ui/card';
|
import { Card, CardContent } from '@/components/ui/card';
|
||||||
import {
|
import {
|
||||||
@@ -173,7 +173,7 @@ export function EntityPhotoGallery({
|
|||||||
{/* Sort Dropdown */}
|
{/* Sort Dropdown */}
|
||||||
{photos.length > 0 && (
|
{photos.length > 0 && (
|
||||||
<div className="flex items-center gap-2">
|
<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)}>
|
<Select value={sortBy} onValueChange={(value: 'newest' | 'oldest') => setSortBy(value)}>
|
||||||
<SelectTrigger className="w-full sm:w-[180px]">
|
<SelectTrigger className="w-full sm:w-[180px]">
|
||||||
<SelectValue />
|
<SelectValue />
|
||||||
|
|||||||
Reference in New Issue
Block a user