diff --git a/components/Shell.tsx b/components/Shell.tsx index 738f89fa..c13468bc 100644 --- a/components/Shell.tsx +++ b/components/Shell.tsx @@ -1,8 +1,8 @@ import Link from 'next/link'; -import {useContext, useEffect, useState} from "react"; -import { useRouter } from "next/router"; -import { signOut, useSession } from 'next-auth/client'; -import { MenuIcon, XIcon } from '@heroicons/react/outline'; +import {useEffect, useState} from "react"; +import {useRouter} from "next/router"; +import {signOut, useSession} from 'next-auth/client'; +import {MenuIcon, XIcon} from '@heroicons/react/outline'; import {collectPageParameters, telemetryEventTypes, useTelemetry} from "../lib/telemetry"; export default function Shell(props) { @@ -133,7 +133,7 @@ export default function Shell(props) { } -
+

{props.heading} diff --git a/pages/integrations/index.tsx b/pages/integrations/index.tsx index f92ea500..d732eee1 100644 --- a/pages/integrations/index.tsx +++ b/pages/integrations/index.tsx @@ -2,10 +2,10 @@ import Head from 'next/head'; import Link from 'next/link'; import prisma from '../../lib/prisma'; import Shell from '../../components/Shell'; -import { useState } from 'react'; -import { useSession, getSession } from 'next-auth/client'; -import { CheckCircleIcon, XCircleIcon, ChevronRightIcon, PlusIcon } from '@heroicons/react/solid'; -import { InformationCircleIcon } from '@heroicons/react/outline'; +import {useState} from 'react'; +import {getSession, useSession} from 'next-auth/client'; +import {CheckCircleIcon, ChevronRightIcon, PlusIcon, XCircleIcon} from '@heroicons/react/solid'; +import {InformationCircleIcon} from '@heroicons/react/outline'; export default function Home({ integrations }) { const [session, loading] = useSession(); @@ -32,7 +32,13 @@ export default function Home({ integrations }) { - + +
+ +
{integrations.filter( (ig) => ig.credential ).length !== 0 ?
    {integrations.filter(ig => ig.credential).map( (ig) => (