bigbuffet-rw/app/soapbox/features/new-status/index.tsx
2022-11-15 14:00:40 -05:00

19 lines
390 B
TypeScript

import React, { 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;