From 5b539416d91af1e2e75b1be64ef0bf36b766e74a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 7 Oct 2023 15:38:15 -0500 Subject: [PATCH] ProfileHoverCard/StatusHoverCard: make `visible` an optional prop --- src/components/profile-hover-card.tsx | 2 +- src/components/status-hover-card.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/profile-hover-card.tsx b/src/components/profile-hover-card.tsx index f7517430e..ddb89e11e 100644 --- a/src/components/profile-hover-card.tsx +++ b/src/components/profile-hover-card.tsx @@ -56,7 +56,7 @@ const handleMouseLeave = (dispatch: AppDispatch): React.MouseEventHandler => { }; interface IProfileHoverCard { - visible: boolean; + visible?: boolean; } /** Popup profile preview that appears when hovering avatars and display names. */ diff --git a/src/components/status-hover-card.tsx b/src/components/status-hover-card.tsx index 5c31f9b4d..08359c61a 100644 --- a/src/components/status-hover-card.tsx +++ b/src/components/status-hover-card.tsx @@ -15,7 +15,7 @@ import { showStatusHoverCard } from './hover-status-wrapper'; import { Card, CardBody } from './ui'; interface IStatusHoverCard { - visible: boolean; + visible?: boolean; } /** Popup status preview that appears when hovering reply to */