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})
}}
hasMedia={hasMedia || Boolean(extLink)}
Portal={Portal.Portal}
/>
{canPost ? (
<Button
@@ -803,10 +802,7 @@ export const ComposePost = ({
disabled={!canSelectImages}
onAdd={onImageAdd}
/>
<SelectGifBtn
onSelectGif={onSelectGif}
disabled={hasMedia}
/>
<SelectGifBtn onSelectGif={onSelectGif} disabled={hasMedia} />
{!isMobile ? (
<Button
onPress={onEmojiButtonPress}
+1 -7
View File
@@ -9,7 +9,6 @@ import {Button, ButtonText} from '#/components/Button'
import * as Dialog from '#/components/Dialog'
import * as ToggleButton from '#/components/forms/ToggleButton'
import {Check_Stroke2_Corner0_Rounded as Check} from '#/components/icons/Check'
import {PortalComponent} from '#/components/Portal'
import {Text} from '#/components/Typography'
const ADULT_CONTENT_LABELS = ['sexual', 'nudity', 'porn']
@@ -18,12 +17,10 @@ export function LabelsBtn({
labels,
hasMedia,
onChange,
Portal,
}: {
labels: string[]
hasMedia: boolean
onChange: (v: string[]) => void
Portal: PortalComponent
}) {
const control = Dialog.useDialogControl()
const t = useTheme()
@@ -63,10 +60,7 @@ export function LabelsBtn({
) : null}
</Button>
<Dialog.Outer
control={control}
Portal={Portal}
nativeOptions={{preventExpansion: true}}>
<Dialog.Outer control={control} nativeOptions={{preventExpansion: true}}>
<Dialog.Handle />
<DialogInner
labels={labels}