[Glitch] Status Action Bar
Port 85c01b8aa9 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
1 parent
ea1b35d121
commit
1060a7c43c
12 files changed
+751
-124
No files matched your search
@@ -6,10 +6,10 @@ import { FormattedMessage, useIntl } from 'react-intl';
|
||||
import classnames from 'classnames';
|
||||
|
||||
import { toggleStatusCollapse } from '@/flavours/glitch/actions/statuses';
|
||||
import { useStatus } from '@/flavours/glitch/hooks/useStatus';
|
||||
import { useIdentity } from '@/flavours/glitch/identity_context';
|
||||
import { languages as preloadedLanguages } from '@/flavours/glitch/initial_state';
|
||||
import type { StatusTranslation } from '@/flavours/glitch/models/status';
|
||||
import { selectPlainStatus } from '@/flavours/glitch/selectors/statuses';
|
||||
import { useAppDispatch, useAppSelector } from '@/flavours/glitch/store';
|
||||
import ChevronRightIcon from '@/material-icons/400-24px/chevron_right.svg?react';
|
||||
|
||||
@@ -27,7 +27,7 @@ export const StatusContent: React.FC<{
|
||||
onTranslate?: React.MouseEventHandler<HTMLButtonElement>;
|
||||
collapsible?: boolean;
|
||||
}> = ({ statusId, onClick, onTranslate, collapsible }) => {
|
||||
const status = useAppSelector((state) => selectPlainStatus(state, statusId));
|
||||
const status = useStatus(statusId);
|
||||
const { signedIn } = useIdentity();
|
||||
const targetLanguages = useAppSelector(
|
||||
(state) =>
|
||||
|
||||
Reference in new issue
Block a user