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 {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)}
|
||||||
|
|
Loading…
Reference in New Issue