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

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