added slack target blank noreferrer

pull/403/head
Peer Richelsen 2021-08-02 19:40:13 +02:00
parent f48e604db3
commit 7734664dbe
1 changed files with 10 additions and 7 deletions

View File

@ -4,7 +4,7 @@ import { useRouter } from "next/router";
import { useSession } from "next-auth/client";
import { Menu, Transition } from "@headlessui/react";
import { collectPageParameters, telemetryEventTypes, useTelemetry } from "../lib/telemetry";
import { SelectorIcon} from "@heroicons/react/outline";
import { SelectorIcon } from "@heroicons/react/outline";
import {
CalendarIcon,
ClockIcon,
@ -77,9 +77,11 @@ export default function Shell(props) {
{/* Sidebar component, swap this element with another sidebar if you like */}
<div className="flex flex-col h-0 flex-1 border-r border-gray-200 bg-white">
<div className="flex-1 flex flex-col pt-5 pb-4 overflow-y-auto">
<div className="flex items-center flex-shrink-0 px-4">
<Link href="/">
<a className="px-4">
<Logo small />
</div>
</a>
</Link>
<nav className="mt-5 flex-1 px-2 bg-white space-y-1">
{navigation.map((item) => (
<Link key={item.name} href={item.href}>
@ -182,7 +184,7 @@ export default function Shell(props) {
) : null;
}
function UserDropdown({session, small, bottom} : {session: any, small?: boolean, bottom?: boolean}){
function UserDropdown({ session, small, bottom }: { session: any; small?: boolean; bottom?: boolean }) {
return (
<Menu as="div" className="w-full relative inline-block text-left">
{({ open }) => (
@ -248,6 +250,7 @@ function UserDropdown({session, small, bottom} : {session: any, small?: boolean,
<a
href="https://calendso.com/slack"
target="_blank"
rel="noreferrer"
className={classNames(
active ? "bg-gray-100 text-gray-900" : "text-neutral-700",
"flex px-4 py-2 text-sm font-medium"