pleroma/app/soapbox/features/new_status/index.tsx
marcin mikołajczak a3d1d2dc91 TS, FC
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-28 21:53:22 +02:00

20 lines
410 B
TypeScript

import React from 'react';
import { useEffect } from 'react';
import { Redirect } from 'react-router-dom';
import { openModal } from 'soapbox/actions/modals';
import { useAppDispatch } from 'soapbox/hooks';
const NewStatus = () => {
const dispatch = useAppDispatch();
useEffect(() => {
dispatch(openModal('COMPOSE'));
}, []);
return (
<Redirect to='/' />
);
};
export default NewStatus;