diff --git a/app/javascript/flavours/glitch/components/status_quoted.tsx b/app/javascript/flavours/glitch/components/status_quoted.tsx index 6586fdf837..892c23d6e6 100644 --- a/app/javascript/flavours/glitch/components/status_quoted.tsx +++ b/app/javascript/flavours/glitch/components/status_quoted.tsx @@ -67,15 +67,15 @@ type QuoteMap = ImmutableMap<'state' | 'quoted_status', string | null>; export const QuotedStatus: React.FC<{ quote: QuoteMap; + contextType?: string; variant?: 'full' | 'link'; nestingLevel?: number; -}> = ({ quote, nestingLevel = 1, variant = 'full' }) => { +}> = ({ quote, contextType, nestingLevel = 1, variant = 'full' }) => { const quotedStatusId = quote.get('quoted_status'); const state = quote.get('state'); const status = useAppSelector((state) => quotedStatusId ? state.statuses.get(quotedStatusId) : undefined, ); - let quoteError: React.ReactNode = null; if (state === 'deleted') { @@ -130,10 +130,16 @@ export const QuotedStatus: React.FC<{ return ( {/* @ts-expect-error Status is not yet typed */} - + {canRenderChildQuote && ( { return ( /* @ts-expect-error Status is not yet typed */ - + ); }