Changeset 8ccb07e for frontend/src/components/search
- Timestamp:
- 02/07/26 21:16:37 (5 months ago)
- Branches:
- main
- Children:
- 799f27d
- Parents:
- 8675f75
- Location:
- frontend/src/components/search
- Files:
-
- 2 edited
-
AlbumResult.tsx (modified) (2 diffs)
-
UserResult.tsx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/components/search/AlbumResult.tsx
r8675f75 r8ccb07e 1 import { useNavigate } from "react-router-dom"; 1 2 import type { Album } from "../../utils/types"; 2 3 … … 6 7 7 8 const AlbumResult = ({ album }: AlbumResultProps) => { 9 const navigate = useNavigate(); 10 8 11 return ( 9 <div className="flex items-center gap-4 p-3 rounded-lg hover:bg-white/5 cursor-pointer transition-colors group"> 12 <div 13 onClick={() => navigate(`/collection/album/${album.id}`)} 14 className="flex items-center gap-4 p-3 rounded-lg hover:bg-white/5 cursor-pointer transition-colors group" 15 > 10 16 <img 11 17 src={album.cover || "/favicon.png"} -
frontend/src/components/search/UserResult.tsx
r8675f75 r8ccb07e 1 import { useNavigate } from "react-router-dom"; 1 2 import { baseURL } from "../../api/axiosInstance"; 2 3 import type { BaseNonAdminUser } from "../../utils/types"; … … 8 9 9 10 const UserResult = ({ user, label }: UserResultProps) => { 11 const navigate = useNavigate(); 12 10 13 return ( 11 <div className="flex items-center gap-4 p-3 rounded-lg hover:bg-white/5 cursor-pointer transition-colors group"> 14 <div 15 onClick={() => navigate(`/users/${user.username}`)} 16 className="flex items-center gap-4 p-3 rounded-lg hover:bg-white/5 cursor-pointer transition-colors group" 17 > 12 18 {user.profilePhoto ? ( 13 19 <img
Note:
See TracChangeset
for help on using the changeset viewer.
