diff --git a/src/components/quoted-status.tsx b/src/components/quoted-status.tsx index 1d4bfb432..dc89a282e 100644 --- a/src/components/quoted-status.tsx +++ b/src/components/quoted-status.tsx @@ -105,9 +105,7 @@ const QuotedStatus: React.FC = ({ status, onCancel, compose }) => {status.quote_id && }
- + {status.media_attachments.length > 0 && ( )} diff --git a/src/components/scroll-top-button.tsx b/src/components/scroll-top-button.tsx index a3d70bb2b..50e13a1a5 100644 --- a/src/components/scroll-top-button.tsx +++ b/src/components/scroll-top-button.tsx @@ -52,7 +52,7 @@ const ScrollTopButton: React.FC = ({ setScrolled(scrollTop > threshold); setScrolledTop(scrollTop <= autoloadThreshold); - }, 150, { trailing: true }), [threshold, autoloadThreshold]); + }, 40, { trailing: true }), [threshold, autoloadThreshold]); /** Scroll to top and trigger `onClick`. */ const handleClick: React.MouseEventHandler = useCallback(() => { @@ -82,7 +82,7 @@ const ScrollTopButton: React.FC = ({ } return ( -
+
+ {composeModifiers} +
{ diff --git a/src/features/compose/editor/index.tsx b/src/features/compose/editor/index.tsx index 311092ac3..f05c27a04 100644 --- a/src/features/compose/editor/index.tsx +++ b/src/features/compose/editor/index.tsx @@ -184,12 +184,14 @@ const ComposeEditor = React.forwardRef(({ contentEditable={
} diff --git a/src/features/compose/editor/nodes/image-component.tsx b/src/features/compose/editor/nodes/image-component.tsx index c995eb87c..b6b39fa47 100644 --- a/src/features/compose/editor/nodes/image-component.tsx +++ b/src/features/compose/editor/nodes/image-component.tsx @@ -1,7 +1,7 @@ /** * This source code is derived from code from Meta Platforms, Inc. * and affiliates, licensed under the MIT license located in the - * LICENSE file in the /app/soapbox/features/compose/editor directory. + * LICENSE file in the /src/features/compose/editor directory. */ import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'; @@ -306,7 +306,7 @@ const ImageComponent = ({ return ( <> -
+
= ({ composeId, isWysiwyg }) => { - const dispatch = useAppDispatch(); const intl = useIntl(); + const dispatch = useAppDispatch(); const [editor] = useLexicalComposerContext(); const features = useFeatures(); diff --git a/src/features/event/event-discussion.tsx b/src/features/event/event-discussion.tsx index ca733e61c..f0ba3877c 100644 --- a/src/features/event/event-discussion.tsx +++ b/src/features/event/event-discussion.tsx @@ -29,8 +29,8 @@ interface IEventDiscussion { } const EventDiscussion: React.FC = (props) => { - const dispatch = useAppDispatch(); const intl = useIntl(); + const dispatch = useAppDispatch(); const getStatus = useCallback(makeGetStatus(), []); const status = useAppSelector(state => getStatus(state, { id: props.params.statusId })); diff --git a/src/features/import-data/components/data-importer.tsx b/src/features/import-data/components/data-importer.tsx index 35132c145..8dfd9f865 100644 --- a/src/features/import-data/components/data-importer.tsx +++ b/src/features/import-data/components/data-importer.tsx @@ -3,7 +3,7 @@ import { FormattedMessage, MessageDescriptor, useIntl } from 'react-intl'; import List, { ListItem } from 'soapbox/components/list'; import { Button, FileInput, Form, FormActions, FormGroup, Text, Toggle } from 'soapbox/components/ui'; -import { useAppDispatch, useFeatures } from 'soapbox/hooks'; +import { useAppDispatch } from 'soapbox/hooks'; import type { AppDispatch, RootState } from 'soapbox/store'; @@ -13,7 +13,7 @@ interface IDataImporter { input_hint: MessageDescriptor; submit: MessageDescriptor; }; - action: (list: File | string, overwrite?: boolean) => (dispatch: AppDispatch, getState: () => RootState) => Promise; + action: (list: File, overwrite?: boolean) => (dispatch: AppDispatch, getState: () => RootState) => Promise; accept?: string; allowOverwrite?: boolean; } @@ -21,7 +21,6 @@ interface IDataImporter { const DataImporter: React.FC = ({ messages, action, accept = '.csv,text/csv', allowOverwrite }) => { const dispatch = useAppDispatch(); const intl = useIntl(); - const features = useFeatures(); const [isLoading, setIsLoading] = useState(false); const [file, setFile] = useState(null); @@ -56,7 +55,7 @@ const DataImporter: React.FC = ({ messages, action, accept = '.cs /> - {features.importOverwrite && ( + {allowOverwrite && ( } diff --git a/src/features/import-data/index.tsx b/src/features/import-data/index.tsx index cfa06a68d..860a5ad0f 100644 --- a/src/features/import-data/index.tsx +++ b/src/features/import-data/index.tsx @@ -40,8 +40,8 @@ const ImportData = () => { return ( - {features.importFollows && } - {features.importBlocks && } + {features.importFollows && } + {features.importBlocks && } {features.importMutes && } ); diff --git a/src/features/ui/components/modals/compose-event-modal/compose-event-modal.tsx b/src/features/ui/components/modals/compose-event-modal/compose-event-modal.tsx index 824860c41..376fbd661 100644 --- a/src/features/ui/components/modals/compose-event-modal/compose-event-modal.tsx +++ b/src/features/ui/components/modals/compose-event-modal/compose-event-modal.tsx @@ -269,7 +269,7 @@ const ComposeEventModal: React.FC = ({ onClose }) => { onChange={onChangeHasEndTime} /> - + {endTime && ( diff --git a/src/features/ui/components/modals/edit-domain-modal.tsx b/src/features/ui/components/modals/edit-domain-modal.tsx index ea7e39111..ddc9cc762 100644 --- a/src/features/ui/components/modals/edit-domain-modal.tsx +++ b/src/features/ui/components/modals/edit-domain-modal.tsx @@ -12,7 +12,7 @@ import type { Domain } from 'soapbox/schemas'; const messages = defineMessages({ save: { id: 'admin.edit_domain.save', defaultMessage: 'Save' }, - domainPlaceholder: { id: 'admin.edit_domain.fields.domain_placeholder', defaultMessage: 'Identity domain name' }, + domainPlaceholder: { id: 'admin.edit_domain.fields.domain_placeholder', defaultMessage: 'Domain name' }, domainCreateSuccess: { id: 'admin.edit_domain.created', defaultMessage: 'Domain created' }, domainUpdateSuccess: { id: 'admin.edit_domain.updated', defaultMessage: 'Domain edited' }, }); diff --git a/src/locales/en.json b/src/locales/en.json index 663fea586..3c58b333e 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -134,7 +134,7 @@ "admin.edit_domain.created": "Domain created", "admin.edit_domain.deleted": "Domain deleted", "admin.edit_domain.fields.domain_label": "Domain", - "admin.edit_domain.fields.domain_placeholder": "Identity domain name", + "admin.edit_domain.fields.domain_placeholder": "Domain name", "admin.edit_domain.fields.public_hint": "When checked, everyone can sign up for an username with this domain", "admin.edit_domain.fields.public_label": "Public", "admin.edit_domain.save": "Save", @@ -437,7 +437,7 @@ "compose_event.fields.description_placeholder": "Description", "compose_event.fields.end_time_label": "Event end date", "compose_event.fields.end_time_placeholder": "Event ends on…", - "compose_event.fields.has_end_time": "The event has end date", + "compose_event.fields.has_end_time": "The event has an end date", "compose_event.fields.location_label": "Event location", "compose_event.fields.name_label": "Event name", "compose_event.fields.name_placeholder": "Name",