umami/pages/index.js

13 lines
227 B
JavaScript
Raw Normal View History

2020-08-06 08:03:07 +02:00
import { useEffect } from 'react';
import { useRouter } from 'next/router';
2020-08-05 07:45:05 +02:00
2020-08-06 08:03:07 +02:00
export default function DefaultPage() {
const router = useRouter();
2020-08-05 07:45:05 +02:00
2020-08-06 08:03:07 +02:00
useEffect(() => {
router.push('/dashboard');
}, []);
2020-07-17 10:03:38 +02:00
2020-08-06 08:03:07 +02:00
return null;
2020-07-17 10:03:38 +02:00
}