diff --git a/app/soapbox/containers/status_container.tsx b/app/soapbox/containers/status_container.tsx index e5ac5014d1..c6196638af 100644 --- a/app/soapbox/containers/status_container.tsx +++ b/app/soapbox/containers/status_container.tsx @@ -24,11 +24,11 @@ const getStatus = makeGetStatus(); * Legacy Status wrapper accepting a status ID instead of the full entity. * @deprecated Use the Status component directly. */ -const StatusContainer: React.FC = ({ id }) => { +const StatusContainer: React.FC = ({ id, onMoveUp, onMoveDown }) => { const status = useAppSelector(state => getStatus(state, { id })); if (status) { - return ; + return ; } else { return null; } diff --git a/app/soapbox/features/status/components/thread-status.tsx b/app/soapbox/features/status/components/thread-status.tsx index 6919e5e8d0..f9117e9036 100644 --- a/app/soapbox/features/status/components/thread-status.tsx +++ b/app/soapbox/features/status/components/thread-status.tsx @@ -9,6 +9,8 @@ import { useAppSelector } from 'soapbox/hooks'; interface IThreadStatus { id: string, focusedStatusId: string, + onMoveUp: (id: string) => void, + onMoveDown: (id: string) => void, } /** Status with reply-connector in threads. */ diff --git a/app/soapbox/features/status/index.tsx b/app/soapbox/features/status/index.tsx index baf6b61aea..add55ecf0e 100644 --- a/app/soapbox/features/status/index.tsx +++ b/app/soapbox/features/status/index.tsx @@ -369,6 +369,8 @@ const Thread: React.FC = (props) => { key={id} id={id} focusedStatusId={status!.id} + onMoveUp={handleMoveUp} + onMoveDown={handleMoveDown} /> ); };