Fix: dont use profile preview modal on mobile web (#1125)
parent
89fc975a15
commit
7bbaccad1c
|
@ -2,7 +2,7 @@ import React from 'react'
|
|||
import {Pressable, StyleProp, ViewStyle} from 'react-native'
|
||||
import {useStores} from 'state/index'
|
||||
import {Link} from './Link'
|
||||
import {isDesktopWeb} from 'platform/detection'
|
||||
import {isWeb} from 'platform/detection'
|
||||
import {makeProfileLink} from 'lib/routes/links'
|
||||
|
||||
interface UserPreviewLinkProps {
|
||||
|
@ -15,7 +15,7 @@ export function UserPreviewLink(
|
|||
) {
|
||||
const store = useStores()
|
||||
|
||||
if (isDesktopWeb) {
|
||||
if (isWeb) {
|
||||
return (
|
||||
<Link
|
||||
href={makeProfileLink(props)}
|
||||
|
|
Loading…
Reference in New Issue