calcom/pages/bookings/index.tsx
Omar López a04336ba06
Added booking tabs, type fixing and refactoring (#825)
* More type fixes

* More type fixes

* Type fixes

* Adds inputMode to email fields

* Added booking tabs

* Adds aditional notes to bookings
2021-09-29 22:33:18 +01:00

16 lines
402 B
TypeScript

import { getSession } from "@lib/auth";
function RedirectPage() {
return null;
}
export async function getServerSideProps(context) {
const session = await getSession(context);
if (!session?.user?.id) {
return { redirect: { permanent: false, destination: "/auth/login" } };
}
return { redirect: { permanent: false, destination: "/bookings/upcoming" } };
}
export default RedirectPage;