Add image to invite link NUX (#10852)

This commit is contained in:
DS Boyce
2026-06-10 11:57:24 -07:00
committed by GitHub
parent 8db30c7d31
commit b47948dca7
2 changed files with 20 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

@@ -1,5 +1,6 @@
import {useState} from 'react'
import {View} from 'react-native'
import {Image} from 'expo-image'
import {
type ChatBskyGroupDefs,
moderateProfile,
@@ -38,6 +39,8 @@ import {IS_WEB} from '#/env'
import {CopyTextButton} from './CopyTextButton'
import {EditTextButton} from './EditTextButton'
const infoImage = require('../../../../assets/images/chat-invite-friends.webp')
enum Step {
INFO,
GENERATE,
@@ -161,8 +164,24 @@ export function InviteLinkDialog({
let content: React.ReactNode = null
let header: string | null = null
let image: React.ReactNode = null
switch (step) {
case Step.INFO: {
image = (
<Image
source={infoImage}
style={[
web(a.rounded_md),
native(a.rounded_xl),
a.mb_lg,
a.w_full,
{aspectRatio: 706 / 418},
web({marginTop: 4}),
native({marginTop: -8}),
]}
accessibilityIgnoresInvertColors
/>
)
header = l`Invite link`
content = (
<>
@@ -508,6 +527,7 @@ export function InviteLinkDialog({
header={
<View>
<View style={[IS_WEB ? [a.px_2xl, a.pt_xl] : {paddingTop: 10}]}>
{image}
<Text style={[a.font_bold, a.text_2xl, a.mb_sm]}>{header}</Text>
</View>
<Dialog.Close />