Fix: dont use profile preview modal on mobile web (#1125)

zio/stable
Paul Frazee 2023-08-07 15:01:26 -07:00 committed by GitHub
parent 89fc975a15
commit 7bbaccad1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import React from 'react'
import {Pressable, StyleProp, ViewStyle} from 'react-native' import {Pressable, StyleProp, ViewStyle} from 'react-native'
import {useStores} from 'state/index' import {useStores} from 'state/index'
import {Link} from './Link' import {Link} from './Link'
import {isDesktopWeb} from 'platform/detection' import {isWeb} from 'platform/detection'
import {makeProfileLink} from 'lib/routes/links' import {makeProfileLink} from 'lib/routes/links'
interface UserPreviewLinkProps { interface UserPreviewLinkProps {
@ -15,7 +15,7 @@ export function UserPreviewLink(
) { ) {
const store = useStores() const store = useStores()
if (isDesktopWeb) { if (isWeb) {
return ( return (
<Link <Link
href={makeProfileLink(props)} href={makeProfileLink(props)}