use getSession() from @lib/auth everywhere (#563)

This commit is contained in:
Alex Johansson authored and GitHub committed 2021-09-03 21:51:21 +01:00
1 parent 1cdb449ecc
commit 2f1ede9bcd
27 files changed
+37 -27

No files matched your search

+2 -1
View File
@@ -4,9 +4,10 @@ import Modal from "@components/Modal";
import Shell from "@components/Shell";
import { useRouter } from "next/router";
import { useRef, useState } from "react";
import { getSession, useSession } from "next-auth/client";
import { useSession } from "next-auth/client";
import { ClockIcon } from "@heroicons/react/outline";
import Loader from "@components/Loader";
import { getSession } from "@lib/auth";
export default function Availability(props) {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
+1 -1
View File
@@ -3,7 +3,7 @@ import prisma from "@lib/prisma";
import dayjs from "dayjs";
import utc from "dayjs/plugin/utc";
import { GetServerSideProps } from "next";
import { getSession } from "next-auth/client";
import { getSession } from "@lib/auth";
import { useEffect, useState } from "react";
import Shell from "@components/Shell";