2022-02-04 03:19:42 +00:00
|
|
|
import Router from 'next/router'
|
2022-07-19 07:50:11 +00:00
|
|
|
import { redirectIfLoggedOut } from 'web/lib/firebase/server-auth'
|
2022-02-04 03:19:42 +00:00
|
|
|
|
2022-07-19 07:50:11 +00:00
|
|
|
export const getServerSideProps = redirectIfLoggedOut('/')
|
2021-12-17 23:07:08 +00:00
|
|
|
|
2022-04-03 20:48:25 +00:00
|
|
|
// Deprecated: redirects to /portfolio.
|
|
|
|
// Eventually, this will be removed.
|
2021-12-24 21:06:01 +00:00
|
|
|
export default function TradesPage() {
|
2022-07-19 07:50:11 +00:00
|
|
|
Router.replace('/portfolio')
|
2021-12-17 23:07:08 +00:00
|
|
|
}
|