diff --git a/src/view/com/util/post-embeds/QuoteEmbed.tsx b/src/view/com/util/post-embeds/QuoteEmbed.tsx index 53cc3b8a15..87a6edebde 100644 --- a/src/view/com/util/post-embeds/QuoteEmbed.tsx +++ b/src/view/com/util/post-embeds/QuoteEmbed.tsx @@ -33,7 +33,7 @@ import {InfoCircleIcon} from 'lib/icons' import {makeProfileLink} from 'lib/routes/links' import {precacheProfile} from 'state/queries/profile' import {ComposerOptsQuote} from 'state/shell/composer' -import {atoms as a, useBreakpoints} from '#/alf' +import {atoms as a} from '#/alf' import {RichText} from '#/components/RichText' import {ContentHider} from '../../../../components/moderation/ContentHider' import {PostAlerts} from '../../../../components/moderation/PostAlerts' @@ -41,7 +41,7 @@ import {Link} from '../Link' import {PostMeta} from '../PostMeta' import {Text} from '../text/Text' import {PostEmbeds} from '.' -import {PostEmbedViewContext, QuoteEmbedViewContext} from './types' +import {QuoteEmbedViewContext} from './types' export function MaybeQuoteEmbed({ embed, @@ -161,7 +161,6 @@ export function QuoteEmbed({ onOpen, style, allowNestedQuotes, - viewContext, }: { quote: ComposerOptsQuote moderation?: ModerationDecision @@ -175,7 +174,6 @@ export function QuoteEmbed({ const itemUrip = new AtUri(quote.uri) const itemHref = makeProfileLink(quote.author, 'post', itemUrip.rkey) const itemTitle = `Post by ${quote.author.handle}` - const {gtMobile} = useBreakpoints() const richText = React.useMemo( () => @@ -207,7 +205,6 @@ export function QuoteEmbed({ } } }, [quote.embeds, allowNestedQuotes]) - const isImagesEmbed = AppBskyEmbedImages.isView(embed) const onBeforePress = React.useCallback(() => { precacheProfile(queryClient, quote.author) @@ -237,43 +234,15 @@ export function QuoteEmbed({ {moderation ? ( ) : null} - - {viewContext === QuoteEmbedViewContext.FeedEmbedRecordWithMedia && - isImagesEmbed ? ( - - {embed && ( - - - - )} - {richText ? ( - - - - ) : null} - - ) : ( - <> - {richText ? ( - - ) : null} - {embed && } - - )} + {richText ? ( + + ) : null} + {embed && } )