@ -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 = () => {
|
||||
|
||||
@ -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 = () => {
|
||||
|
||||
@ -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 });
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user