diff --git a/src/view/com/discover/SuggestedFollows.tsx b/src/view/com/discover/SuggestedFollows.tsx index 1b381017..80231521 100644 --- a/src/view/com/discover/SuggestedFollows.tsx +++ b/src/view/com/discover/SuggestedFollows.tsx @@ -12,6 +12,7 @@ import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {observer} from 'mobx-react-lite' import _omit from 'lodash.omit' import {ErrorScreen} from '../util/ErrorScreen' +import {Link} from '../util/Link' import {UserAvatar} from '../util/UserAvatar' import Toast from '../util/Toast' import {useStores} from '../../../state' @@ -23,7 +24,13 @@ import { import {s, colors, gradients} from '../../lib/styles' export const SuggestedFollows = observer( - ({onNoSuggestions}: {onNoSuggestions?: () => void}) => { + ({ + onNoSuggestions, + asLinks, + }: { + onNoSuggestions?: () => void + asLinks?: boolean + }) => { const store = useStores() const [follows, setFollows] = useState>({}) @@ -75,14 +82,30 @@ export const SuggestedFollows = observer( } } - const renderItem = ({item}: {item: SuggestedActor}) => ( - - ) + const renderItem = ({item}: {item: SuggestedActor}) => { + if (asLinks) { + return ( + + + + ) + } + return ( + + ) + } return ( {view.isLoading ? ( diff --git a/src/view/screens/Search.tsx b/src/view/screens/Search.tsx index 73532602..b1c78f68 100644 --- a/src/view/screens/Search.tsx +++ b/src/view/screens/Search.tsx @@ -25,7 +25,7 @@ export const Search = ({visible, params}: ScreenParams) => { Suggested follows - + ) }