use FeedEmbedRecordWithMedia presentation in composer
This commit is contained in:
@@ -121,6 +121,7 @@ import {EmojiArc_Stroke2_Corner0_Rounded as EmojiSmile} from '#/components/icons
|
|||||||
import {TimesLarge_Stroke2_Corner0_Rounded as X} from '#/components/icons/Times'
|
import {TimesLarge_Stroke2_Corner0_Rounded as X} from '#/components/icons/Times'
|
||||||
import * as Prompt from '#/components/Prompt'
|
import * as Prompt from '#/components/Prompt'
|
||||||
import {Text as NewText} from '#/components/Typography'
|
import {Text as NewText} from '#/components/Typography'
|
||||||
|
import {QuoteEmbedViewContext} from '../util/post-embeds'
|
||||||
|
|
||||||
type CancelRef = {
|
type CancelRef = {
|
||||||
onPressCancel: () => void
|
onPressCancel: () => void
|
||||||
@@ -735,7 +736,10 @@ export const ComposePost = observer(function ComposePost({
|
|||||||
{quote ? (
|
{quote ? (
|
||||||
<View style={[s.mt5, s.mb2, isWeb && s.mb10]}>
|
<View style={[s.mt5, s.mb2, isWeb && s.mb10]}>
|
||||||
<View style={{pointerEvents: 'none'}}>
|
<View style={{pointerEvents: 'none'}}>
|
||||||
<QuoteEmbed quote={quote} />
|
<QuoteEmbed
|
||||||
|
quote={quote}
|
||||||
|
viewContext={QuoteEmbedViewContext.FeedEmbedRecordWithMedia}
|
||||||
|
/>
|
||||||
</View>
|
</View>
|
||||||
{quote.uri !== initQuote?.uri && (
|
{quote.uri !== initQuote?.uri && (
|
||||||
<QuoteX onRemove={() => setQuote(undefined)} />
|
<QuoteX onRemove={() => setQuote(undefined)} />
|
||||||
|
|||||||
Reference in New Issue
Block a user