QuotedStatus: add useState type

This commit is contained in:
Alex Gleason 2022-06-08 10:56:27 -05:00
parent da70097960
commit 1a7a1cc802
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -32,7 +32,7 @@ const QuotedStatus: React.FC<IQuotedStatus> = ({ status, onCancel, compose }) =>
const settings = useSettings();
const displayMedia = settings.get('displayMedia');
const [showMedia, setShowMedia] = useState(defaultMediaVisibility(status, displayMedia));
const [showMedia, setShowMedia] = useState<boolean>(defaultMediaVisibility(status, displayMedia));
const handleExpandClick = (e: React.MouseEvent<HTMLDivElement>) => {
if (!status) return;