diff --git a/packages/pl-fe/src/components/status-content.tsx b/packages/pl-fe/src/components/status-content.tsx index deb5a17ec..942be15f8 100644 --- a/packages/pl-fe/src/components/status-content.tsx +++ b/packages/pl-fe/src/components/status-content.tsx @@ -1,7 +1,7 @@ import clsx from 'clsx'; import parse, { Element, type HTMLReactParserOptions, domToReact, type DOMNode } from 'html-react-parser'; import React, { useState, useRef, useLayoutEffect, useMemo } from 'react'; -import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; +import { FormattedMessage } from 'react-intl'; import { Link } from 'react-router-dom'; import { toggleStatusSpoilerExpanded } from 'pl-fe/actions/statuses'; @@ -23,11 +23,6 @@ import type { MinifiedStatus } from 'pl-fe/reducers/statuses'; const MAX_HEIGHT = 322; // 20px * 16 (+ 2px padding at the top) const BIG_EMOJI_LIMIT = 10; -const messages = defineMessages({ - collapse: { id: 'status.spoiler.collapse', defaultMessage: 'Collapse' }, - expand: { id: 'status.spoiler.expand', defaultMessage: 'Expand' }, -}); - interface IReadMoreButton { onClick: React.MouseEventHandler; quote?: boolean; @@ -66,7 +61,6 @@ const StatusContent: React.FC = React.memo(({ textSize = 'md', quote = false, }) => { - const intl = useIntl(); const dispatch = useAppDispatch(); const { displaySpoilers } = useSettings(); @@ -193,7 +187,7 @@ const StatusContent: React.FC = React.memo(({ if (spoilerText) { output.push( - + {expandable && ( )} ,