diff --git a/app/javascript/flavours/glitch/components/status_quoted.tsx b/app/javascript/flavours/glitch/components/status_quoted.tsx index 323f5a8c0d..d582e043c3 100644 --- a/app/javascript/flavours/glitch/components/status_quoted.tsx +++ b/app/javascript/flavours/glitch/components/status_quoted.tsx @@ -21,8 +21,10 @@ const MAX_QUOTE_POSTS_NESTING_LEVEL = 1; const QuoteWrapper: React.FC<{ isError?: boolean; + contextType?: string; + onQuoteCancel?: () => void; children: React.ReactElement; -}> = ({ isError, children }) => { +}> = ({ isError, contextType, onQuoteCancel, children }) => { return (
{children} + {contextType === 'composer' && ( + + )}
); }; @@ -146,49 +153,47 @@ export const QuotedStatus: React.FC = ({ /> -
- -

); + } else if (quoteState === 'revoked') { + quoteError = ( + + ); } else if ( !status || !quotedStatusId || quoteState === 'deleted' || quoteState === 'rejected' || - quoteState === 'revoked' || quoteState === 'unauthorized' ) { quoteError = ( - <> - - {contextType === 'composer' && ( - - )} - + ); } if (quoteError) { - return {quoteError}; + return ( + + {quoteError} + + ); } if (variant === 'link' && status) {