use getSession() from @lib/auth everywhere (#563)
This commit is contained in:
1 parent
1cdb449ecc
commit
2f1ede9bcd
27 files changed
+37
-27
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import Shell from "@components/Shell";
|
||||
import SettingsShell from "@components/Settings";
|
||||
import prisma from "@lib/prisma";
|
||||
import { getSession } from "next-auth/client";
|
||||
import { getSession } from "@lib/auth";
|
||||
|
||||
export default function Billing() {
|
||||
return (
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import prisma from "@lib/prisma";
|
||||
import Shell from "@components/Shell";
|
||||
import SettingsShell from "@components/Settings";
|
||||
import { getSession, useSession } from "next-auth/client";
|
||||
import { useSession } from "next-auth/client";
|
||||
import Loader from "@components/Loader";
|
||||
import { getSession } from "@lib/auth";
|
||||
|
||||
export default function Embed(props) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
|
||||
@@ -3,8 +3,9 @@ import prisma from "@lib/prisma";
|
||||
import Modal from "@components/Modal";
|
||||
import Shell from "@components/Shell";
|
||||
import SettingsShell from "@components/Settings";
|
||||
import { getSession, useSession } from "next-auth/client";
|
||||
import { useSession } from "next-auth/client";
|
||||
import Loader from "@components/Loader";
|
||||
import { getSession } from "@lib/auth";
|
||||
|
||||
export default function Settings() {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
|
||||
@@ -5,7 +5,7 @@ import Modal from "@components/Modal";
|
||||
import Shell from "@components/Shell";
|
||||
import SettingsShell from "@components/Settings";
|
||||
import Avatar from "@components/Avatar";
|
||||
import { getSession } from "next-auth/client";
|
||||
import { getSession } from "@lib/auth";
|
||||
import Select from "react-select";
|
||||
import TimezoneSelect from "react-timezone-select";
|
||||
import { UsernameInput } from "@components/ui/UsernameInput";
|
||||
|
||||
@@ -3,11 +3,12 @@ import Shell from "@components/Shell";
|
||||
import SettingsShell from "@components/Settings";
|
||||
import { useEffect, useState } from "react";
|
||||
import type { Session } from "next-auth";
|
||||
import { getSession, useSession } from "next-auth/client";
|
||||
import { useSession } from "next-auth/client";
|
||||
import { UsersIcon } from "@heroicons/react/outline";
|
||||
import TeamList from "@components/team/TeamList";
|
||||
import TeamListItem from "@components/team/TeamListItem";
|
||||
import Loader from "@components/Loader";
|
||||
import { getSession } from "@lib/auth";
|
||||
|
||||
export default function Teams() {
|
||||
const [, loading] = useSession();
|
||||
|
||||
Reference in new issue
Block a user