move feed context on desktop
This commit is contained in:
@@ -5,8 +5,8 @@ import {t} from '@lingui/macro'
|
|||||||
import {DISCOVER_DEBUG_DIDS} from '#/lib/constants'
|
import {DISCOVER_DEBUG_DIDS} from '#/lib/constants'
|
||||||
import {useGate} from '#/lib/statsig/statsig'
|
import {useGate} from '#/lib/statsig/statsig'
|
||||||
import {useSession} from '#/state/session'
|
import {useSession} from '#/state/session'
|
||||||
import * as Toast from '#/view/com/util/Toast'
|
import {atoms as a, useTheme} from '#/alf'
|
||||||
import {atoms as a, useBreakpoints, useTheme} from '#/alf'
|
import * as Toast from '#/components/Toast'
|
||||||
import {Text} from '#/components/Typography'
|
import {Text} from '#/components/Typography'
|
||||||
import {IS_INTERNAL} from '#/env'
|
import {IS_INTERNAL} from '#/env'
|
||||||
|
|
||||||
@@ -16,7 +16,6 @@ export function DiscoverDebug({
|
|||||||
feedContext: string | undefined
|
feedContext: string | undefined
|
||||||
}) {
|
}) {
|
||||||
const {currentAccount} = useSession()
|
const {currentAccount} = useSession()
|
||||||
const {gtMobile} = useBreakpoints()
|
|
||||||
const gate = useGate()
|
const gate = useGate()
|
||||||
const isDiscoverDebugUser =
|
const isDiscoverDebugUser =
|
||||||
IS_INTERNAL ||
|
IS_INTERNAL ||
|
||||||
@@ -30,15 +29,11 @@ export function DiscoverDebug({
|
|||||||
<Pressable
|
<Pressable
|
||||||
accessible={false}
|
accessible={false}
|
||||||
hitSlop={10}
|
hitSlop={10}
|
||||||
style={[
|
style={[a.absolute, {zIndex: 1000, maxWidth: 65, bottom: -4}, a.left_0]}
|
||||||
a.absolute,
|
|
||||||
{zIndex: 1000, maxWidth: 65, bottom: -4},
|
|
||||||
gtMobile ? a.right_0 : a.left_0,
|
|
||||||
]}
|
|
||||||
onPress={e => {
|
onPress={e => {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
Clipboard.setStringAsync(feedContext)
|
Clipboard.setStringAsync(feedContext)
|
||||||
Toast.show(t`Copied to clipboard`, 'clipboard-check')
|
Toast.show(t`Copied to clipboard`)
|
||||||
}}>
|
}}>
|
||||||
<Text
|
<Text
|
||||||
numberOfLines={1}
|
numberOfLines={1}
|
||||||
|
|||||||
Reference in New Issue
Block a user