diff --git a/src/components/upload.tsx b/src/components/upload.tsx index 75a128191..8308950cc 100644 --- a/src/components/upload.tsx +++ b/src/components/upload.tsx @@ -10,14 +10,14 @@ import zoomInIcon from '@tabler/icons/outline/zoom-in.svg'; import clsx from 'clsx'; import { List as ImmutableList } from 'immutable'; import React, { useState } from 'react'; -import { FormattedMessage, defineMessages, useIntl } from 'react-intl'; +import { defineMessages, useIntl } from 'react-intl'; import { spring } from 'react-motion'; import { openModal } from 'soapbox/actions/modals'; import Blurhash from 'soapbox/components/blurhash'; import { HStack, Icon, IconButton } from 'soapbox/components/ui'; import Motion from 'soapbox/features/ui/util/optional-motion'; -import { useAppDispatch, useSettings } from 'soapbox/hooks'; +import { useAppDispatch } from 'soapbox/hooks'; import { Attachment } from 'soapbox/types/entities'; export const MIMETYPE_ICONS: Record = { @@ -55,7 +55,6 @@ export const MIMETYPE_ICONS: Record = { }; const messages = defineMessages({ - altWarning: { id: 'upload_form.alt_warning', defaultMessage: 'This attachment doesn\'t have a description' }, description: { id: 'upload_form.description', defaultMessage: 'Describe for the visually impaired' }, delete: { id: 'upload_form.undo', defaultMessage: 'Delete' }, preview: { id: 'upload_form.preview', defaultMessage: 'Preview' }, @@ -81,8 +80,6 @@ const Upload: React.FC = ({ const intl = useIntl(); const dispatch = useAppDispatch(); - const { missingDescriptionModal } = useSettings(); - const [hovered, setHovered] = useState(false); const [focused, setFocused] = useState(false); const [dirtyDescription, setDirtyDescription] = useState(null); @@ -203,19 +200,6 @@ const Upload: React.FC = ({ )} - {missingDescriptionModal && !description && ( - - - - - )} -
{mediaType === 'video' && (
- - - {status.media_attachments.size > 0 && ( - + - )} - {status.poll && } + {status.media_attachments.size > 0 && ( + + )} - + {status.poll && } + ); diff --git a/src/features/scheduled-statuses/index.tsx b/src/features/scheduled-statuses/index.tsx index 781a06759..0a9b3dcae 100644 --- a/src/features/scheduled-statuses/index.tsx +++ b/src/features/scheduled-statuses/index.tsx @@ -39,6 +39,7 @@ const ScheduledStatuses = () => { isLoading={typeof isLoading === 'boolean' ? isLoading : true} onLoadMore={() => handleLoadMore(dispatch)} emptyMessage={emptyMessage} + listClassName='divide-y divide-solid divide-gray-200 dark:divide-gray-800' > {statusIds.map((id: string) => )} diff --git a/src/features/ui/components/pending-status.tsx b/src/features/ui/components/pending-status.tsx index 49dd2bcd8..1ed4e5502 100644 --- a/src/features/ui/components/pending-status.tsx +++ b/src/features/ui/components/pending-status.tsx @@ -60,7 +60,10 @@ const PendingStatus: React.FC = ({ idempotencyKey, className, mu
diff --git a/src/locales/en.json b/src/locales/en.json index 962e3f853..83851b3bc 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1590,8 +1590,6 @@ "upload_error.poll": "File upload not allowed with polls.", "upload_error.video_duration_limit": "Video exceeds the current duration limit ({limit, plural, one {# second} other {# seconds}})", "upload_error.video_size_limit": "Video exceeds the current file size limit ({limit})", - "upload_form.alt_label": "Alt", - "upload_form.alt_warning": "This attachment doesn't have a description", "upload_form.description": "Describe for the visually impaired", "upload_form.preview": "Preview", "upload_form.undo": "Delete",