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
@@ -3,8 +3,9 @@ import { getIntegrationName, getIntegrationType } from "@lib/integrations";
|
||||
import Shell from "@components/Shell";
|
||||
import { useState } from "react";
|
||||
import { useRouter } from "next/router";
|
||||
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 Integration(props) {
|
||||
const router = useRouter();
|
||||
|
||||
@@ -2,7 +2,7 @@ import Link from "next/link";
|
||||
import prisma from "@lib/prisma";
|
||||
import Shell from "@components/Shell";
|
||||
import { useEffect, useState, useRef, useCallback } from "react";
|
||||
import { getSession, useSession } from "next-auth/client";
|
||||
import { useSession } from "next-auth/client";
|
||||
import { CheckCircleIcon, ChevronRightIcon, PlusIcon, XCircleIcon } from "@heroicons/react/solid";
|
||||
import { InformationCircleIcon } from "@heroicons/react/outline";
|
||||
import { Dialog, DialogClose, DialogContent, DialogHeader, DialogTrigger } from "@components/Dialog";
|
||||
@@ -11,6 +11,7 @@ import Loader from "@components/Loader";
|
||||
import AddCalDavIntegration, {
|
||||
ADD_CALDAV_INTEGRATION_FORM_TITLE,
|
||||
} from "@lib/integrations/CalDav/components/AddCalDavIntegration";
|
||||
import { getSession } from "@lib/auth";
|
||||
|
||||
export type Integration = {
|
||||
installed: boolean;
|
||||
|
||||
Reference in new issue
Block a user