nicolium: fix

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-26 20:25:36 +01:00
parent c148a5b150
commit 59ddf4689e
3 changed files with 3 additions and 7 deletions

View File

@ -23,7 +23,6 @@ import VerificationBadge from '@/components/verification-badge';
import Emojify from '@/features/emoji/emojify';
import ActionButton from '@/features/ui/components/action-button';
import SubscriptionButton from '@/features/ui/components/subscription-button';
import { useAppDispatch } from '@/hooks/use-app-dispatch';
import { useClient } from '@/hooks/use-client';
import { useFeatures } from '@/hooks/use-features';
import { useOwnAccount } from '@/hooks/use-own-account';
@ -166,7 +165,6 @@ interface IHeader {
const Header: React.FC<IHeader> = ({ account }) => {
const intl = useIntl();
const navigate = useNavigate();
const dispatch = useAppDispatch();
const { mentionCompose, directCompose } = useComposeActions();
const client = useClient();
@ -309,7 +307,7 @@ const Header: React.FC<IHeader> = ({ account }) => {
};
const onReport = () => {
dispatch(initReport(ReportableEntities.ACCOUNT, account));
initReport(ReportableEntities.ACCOUNT, account);
};
const onMute = () => {

View File

@ -235,7 +235,7 @@ const EventHeader: React.FC<IEventHeader> = ({ status }) => {
};
const handleReport = () => {
dispatch(initReport(ReportableEntities.STATUS, account, { status }));
initReport(ReportableEntities.STATUS, account, { status });
};
const handleToggleStatusSensitivity = () => {

View File

@ -10,7 +10,6 @@ import Text from '@/components/ui/text';
import Textarea from '@/components/ui/textarea';
import Toggle from '@/components/ui/toggle';
import DurationSelector from '@/features/compose/components/polls/duration-selector';
import { useAppDispatch } from '@/hooks/use-app-dispatch';
import { useFeatures } from '@/hooks/use-features';
import { useAccount } from '@/queries/accounts/use-account';
import {
@ -40,7 +39,6 @@ const BlockMuteModal: React.FC<BlockMuteModalProps & BaseModalProps> = ({
onClose,
action,
}) => {
const dispatch = useAppDispatch();
const intl = useIntl();
const { data: account } = useAccount(accountId || undefined, true);
@ -83,7 +81,7 @@ const BlockMuteModal: React.FC<BlockMuteModalProps & BaseModalProps> = ({
const handleBlockAndReport = () => {
handleClick(() => {
dispatch(initReport(ReportableEntities.STATUS, account, { statusId }));
initReport(ReportableEntities.STATUS, account, { statusId });
});
};