bigbuffet-rw/app/soapbox/features/new_status/index.tsx

21 lines
410 B
TypeScript
Raw Normal View History

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;