remove Portal usage

This commit is contained in:
Samuel Newman
2024-10-11 13:48:12 +03:00
parent e1e148d42a
commit 0aa76be70f
2 changed files with 2 additions and 12 deletions
+1 -5
View File
@@ -565,7 +565,6 @@ export const ComposePost = ({
dispatch({type: 'update_labels', labels: nextLabels}) dispatch({type: 'update_labels', labels: nextLabels})
}} }}
hasMedia={hasMedia || Boolean(extLink)} hasMedia={hasMedia || Boolean(extLink)}
Portal={Portal.Portal}
/> />
{canPost ? ( {canPost ? (
<Button <Button
@@ -803,10 +802,7 @@ export const ComposePost = ({
disabled={!canSelectImages} disabled={!canSelectImages}
onAdd={onImageAdd} onAdd={onImageAdd}
/> />
<SelectGifBtn <SelectGifBtn onSelectGif={onSelectGif} disabled={hasMedia} />
onSelectGif={onSelectGif}
disabled={hasMedia}
/>
{!isMobile ? ( {!isMobile ? (
<Button <Button
onPress={onEmojiButtonPress} onPress={onEmojiButtonPress}
+1 -7
View File
@@ -9,7 +9,6 @@ import {Button, ButtonText} from '#/components/Button'
import * as Dialog from '#/components/Dialog' import * as Dialog from '#/components/Dialog'
import * as ToggleButton from '#/components/forms/ToggleButton' import * as ToggleButton from '#/components/forms/ToggleButton'
import {Check_Stroke2_Corner0_Rounded as Check} from '#/components/icons/Check' import {Check_Stroke2_Corner0_Rounded as Check} from '#/components/icons/Check'
import {PortalComponent} from '#/components/Portal'
import {Text} from '#/components/Typography' import {Text} from '#/components/Typography'
const ADULT_CONTENT_LABELS = ['sexual', 'nudity', 'porn'] const ADULT_CONTENT_LABELS = ['sexual', 'nudity', 'porn']
@@ -18,12 +17,10 @@ export function LabelsBtn({
labels, labels,
hasMedia, hasMedia,
onChange, onChange,
Portal,
}: { }: {
labels: string[] labels: string[]
hasMedia: boolean hasMedia: boolean
onChange: (v: string[]) => void onChange: (v: string[]) => void
Portal: PortalComponent
}) { }) {
const control = Dialog.useDialogControl() const control = Dialog.useDialogControl()
const t = useTheme() const t = useTheme()
@@ -63,10 +60,7 @@ export function LabelsBtn({
) : null} ) : null}
</Button> </Button>
<Dialog.Outer <Dialog.Outer control={control} nativeOptions={{preventExpansion: true}}>
control={control}
Portal={Portal}
nativeOptions={{preventExpansion: true}}>
<Dialog.Handle /> <Dialog.Handle />
<DialogInner <DialogInner
labels={labels} labels={labels}