QuotedStatus: add useState type
This commit is contained in:
parent
da70097960
commit
1a7a1cc802
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue