added slack target blank noreferrer
parent
f48e604db3
commit
7734664dbe
|
@ -4,7 +4,7 @@ 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="/">
|
||||||
|
<a className="px-4">
|
||||||
<Logo small />
|
<Logo small />
|
||||||
</div>
|
</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"
|
||||||
|
|
Loading…
Reference in New Issue