Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Split ShareViaChatDialog (#4383)

authored by

dan and committed by
GitHub
1f954c10 5d2119ff

+22 -11
+22 -11
src/components/dms/dialogs/ShareViaChatDialog.tsx
··· 15 15 control: Dialog.DialogControlProps 16 16 onSelectChat: (chatId: string) => void 17 17 }) { 18 + return ( 19 + <Dialog.Outer 20 + control={control} 21 + testID="sendViaChatChatDialog" 22 + nativeOptions={{sheet: {snapPoints: ['100%']}}}> 23 + <SendViaChatDialogInner control={control} onSelectChat={onSelectChat} /> 24 + </Dialog.Outer> 25 + ) 26 + } 27 + 28 + function SendViaChatDialogInner({ 29 + control, 30 + onSelectChat, 31 + }: { 32 + control: Dialog.DialogControlProps 33 + onSelectChat: (chatId: string) => void 34 + }) { 18 35 const {_} = useLingui() 19 - 20 36 const {mutate: createChat} = useGetConvoForMembers({ 21 37 onSuccess: data => { 22 38 onSelectChat(data.convo.id) ··· 39 55 ) 40 56 41 57 return ( 42 - <Dialog.Outer 43 - control={control} 44 - testID="sendViaChatChatDialog" 45 - nativeOptions={{sheet: {snapPoints: ['100%']}}}> 46 - <SearchablePeopleList 47 - title={_(msg`Send post to...`)} 48 - onSelectChat={onCreateChat} 49 - showRecentConvos 50 - /> 51 - </Dialog.Outer> 58 + <SearchablePeopleList 59 + title={_(msg`Send post to...`)} 60 + onSelectChat={onCreateChat} 61 + showRecentConvos 62 + /> 52 63 ) 53 64 }