Revert testing edits
This commit is contained in:
@@ -34,7 +34,6 @@ import {
|
|||||||
} from '#/components/KnownFollowers'
|
} from '#/components/KnownFollowers'
|
||||||
import * as Prompt from '#/components/Prompt'
|
import * as Prompt from '#/components/Prompt'
|
||||||
import {RichText} from '#/components/RichText'
|
import {RichText} from '#/components/RichText'
|
||||||
import * as Tooltip from '#/components/Tooltip'
|
|
||||||
import {Text} from '#/components/Typography'
|
import {Text} from '#/components/Typography'
|
||||||
import {VerificationCheckButton} from '#/components/verification/VerificationCheckButton'
|
import {VerificationCheckButton} from '#/components/verification/VerificationCheckButton'
|
||||||
import {EditProfileDialog} from './EditProfileDialog'
|
import {EditProfileDialog} from './EditProfileDialog'
|
||||||
@@ -142,8 +141,6 @@ let ProfileHeaderStandard = ({
|
|||||||
|
|
||||||
const {isActive: live} = useActorStatus(profile)
|
const {isActive: live} = useActorStatus(profile)
|
||||||
|
|
||||||
const [visible, setVisible] = React.useState(false)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ProfileHeaderShell
|
<ProfileHeaderShell
|
||||||
profile={profile}
|
profile={profile}
|
||||||
@@ -201,30 +198,7 @@ let ProfileHeaderStandard = ({
|
|||||||
)
|
)
|
||||||
) : !profile.viewer?.blockedBy ? (
|
) : !profile.viewer?.blockedBy ? (
|
||||||
<>
|
<>
|
||||||
<Button
|
{hasSession && <MessageProfileButton profile={profile} />}
|
||||||
label="test"
|
|
||||||
size="small"
|
|
||||||
variant="solid"
|
|
||||||
color="secondary"
|
|
||||||
shape="round"
|
|
||||||
onPress={() => setVisible(!visible)}>
|
|
||||||
<ButtonIcon position="left" icon={Plus} />
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
{hasSession && (
|
|
||||||
<>
|
|
||||||
<Tooltip.Outer visible={visible} onVisibleChange={setVisible}>
|
|
||||||
<Tooltip.Target>
|
|
||||||
<MessageProfileButton profile={profile} />
|
|
||||||
</Tooltip.Target>
|
|
||||||
<Tooltip.TextBubble>
|
|
||||||
<Text>
|
|
||||||
<Trans>Get notified about new posts</Trans>
|
|
||||||
</Text>
|
|
||||||
</Tooltip.TextBubble>
|
|
||||||
</Tooltip.Outer>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
testID={profile.viewer?.following ? 'unfollowBtn' : 'followBtn'}
|
testID={profile.viewer?.following ? 'unfollowBtn' : 'followBtn'}
|
||||||
|
|||||||
Reference in New Issue
Block a user