ATlast — you'll never need to find your favorites on another platform again. Find your favs in the ATmosphere.
atproto
16
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove duplicate type definitions from Results.tsx

Optimization #8:
- removed 3 duplicate type definitions (atprotoSession, SourceUser, SearchResult)
- import AtprotoSession and SearchResult from central types
- prevents type drift, establishes single source of truth

byarielm.fyi 65ac8561 093b47d6

verified
+2 -24
+2 -24
src/pages/Results.tsx
··· 3 3 import AppHeader from "../components/AppHeader"; 4 4 import SearchResultCard from "../components/SearchResultCard"; 5 5 import FaviconIcon from "../components/FaviconIcon"; 6 - import type { AtprotoAppId } from "../types/settings"; 6 + import type { AtprotoAppId, AtprotoSession, SearchResult } from "../types"; 7 7 import { getPlatform, getAtprotoApp } from "../lib/utils/platform"; 8 8 import VirtualizedResultsList from "../components/VirtualizedResultsList"; 9 9 import Button from "../components/common/Button"; 10 10 11 - interface atprotoSession { 12 - did: string; 13 - handle: string; 14 - displayName?: string; 15 - avatar?: string; 16 - description?: string; 17 - } 18 - 19 - interface SourceUser { 20 - username: string; 21 - date: string; 22 - } 23 - 24 - interface SearchResult { 25 - sourceUser: SourceUser; 26 - atprotoMatches: any[]; 27 - isSearching: boolean; 28 - error?: string; 29 - selectedMatches?: Set<string>; 30 - sourcePlatform: string; 31 - } 32 - 33 11 interface ResultsPageProps { 34 - session: atprotoSession | null; 12 + session: AtprotoSession | null; 35 13 onLogout: () => void; 36 14 onNavigate: (step: "home" | "login") => void; 37 15 searchResults: SearchResult[];