From d8e11d3d69be0712d1baeb144fba70f5ba83c979 Mon Sep 17 00:00:00 2001 From: mkljczk Date: Fri, 21 Mar 2025 10:04:36 +0100 Subject: [PATCH] pl-fe: show a subtle no alt text warning no matter if confirmation description is enabled Signed-off-by: mkljczk --- packages/pl-fe/src/components/upload.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/pl-fe/src/components/upload.tsx b/packages/pl-fe/src/components/upload.tsx index 65b238e03..24863058a 100644 --- a/packages/pl-fe/src/components/upload.tsx +++ b/packages/pl-fe/src/components/upload.tsx @@ -18,7 +18,6 @@ import HStack from 'pl-fe/components/ui/hstack'; import Icon from 'pl-fe/components/ui/icon'; import IconButton from 'pl-fe/components/ui/icon-button'; import Motion from 'pl-fe/features/ui/util/optional-motion'; -import { useSettings } from 'pl-fe/hooks/use-settings'; import { useModalsStore } from 'pl-fe/stores/modals'; import type { MediaAttachment } from 'pl-api'; @@ -87,8 +86,6 @@ const Upload: React.FC = ({ const intl = useIntl(); const { openModal } = useModalsStore(); - const { missingDescriptionModal } = useSettings(); - const [hovered, setHovered] = useState(false); const [focused, setFocused] = useState(false); const [dirtyDescription, setDirtyDescription] = useState(null); @@ -226,7 +223,7 @@ const Upload: React.FC = ({ )} - {missingDescriptionModal && !description && ( + {!description && (