Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

teams icon

Aashish-Upadhyay-1012ca495632865
diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx
index 2ff64d64..c0bf2923 100644
--- a/components/Sidebar.tsx
+++ b/components/Sidebar.tsx
@@ -16,6 +16,13 @@ import { Button } from "./ui/button";
import { CustomUser } from "@/lib/types";
import LoadingSpinner from "./ui/loading-spinner";
import Banner from "./banner";
+// import {
+// Select,
+// SelectContent,
+// SelectItem,
+// SelectTrigger,
+// SelectValue,
+// } from "@/components/ui/select";
export default function Sidebar() {
const { data: session, status } = useSession();
@@ -52,7 +59,7 @@ export default function Sidebar() {
disabled: false,
},
];
- if (status === "loading") return <LoadingSpinner className="mr-1 h-5 w-5" />;;
+ if (status === "loading") return <LoadingSpinner className="mr-1 h-5 w-5" />;
return (
<>
@@ -60,8 +67,7 @@ export default function Sidebar() {
<Dialog
as="div"
className="relative z-50 xl:hidden"
- onClose={setSidebarOpen}
- >
+ onClose={setSidebarOpen}>
<Transition.Child
as={Fragment}
enter="transition-opacity ease-linear duration-300"
@@ -69,8 +75,7 @@ export default function Sidebar() {
enterTo="opacity-100"
leave="transition-opacity ease-linear duration-300"
leaveFrom="opacity-100"
- leaveTo="opacity-0"
- >
+ leaveTo="opacity-0">
<div className="fixed inset-0 bg-background/80" />
</Transition.Child>
@@ -82,8 +87,7 @@ export default function Sidebar() {
enterTo="translate-x-0"
leave="transition ease-in-out duration-300 transform"
leaveFrom="translate-x-0"
- leaveTo="-translate-x-full"
- >
+ leaveTo="-translate-x-full">
<Dialog.Panel className="relative mr-16 flex w-full max-w-xs flex-1">
<Transition.Child
as={Fragment}
@@ -92,14 +96,12 @@ export default function Sidebar() {
enterTo="opacity-100"
leave="ease-in-out duration-300"
leaveFrom="opacity-100"
- leaveTo="opacity-0"
- >
+ leaveTo="opacity-0">
<div className="absolute left-full top-0 flex w-16 justify-center pt-5">
<button
type="button"
className="-m-2.5 p-2.5"
- onClick={() => setSidebarOpen(false)}
- >
+ onClick={() => setSidebarOpen(false)}>
<span className="sr-only">Close sidebar</span>
<X
className="h-6 w-6 text-foreground"
@@ -129,8 +131,7 @@ export default function Sidebar() {
: "text-muted-foreground hover:text-foreground hover:bg-gray-200 hover:dark:bg-muted",
"group flex gap-x-3 items-center rounded-md p-2 text-sm leading-6 w-full disabled:hover:bg-transparent disabled:text-muted-foreground disabled:cursor-default"
)}
- disabled={item.disabled}
- >
+ disabled={item.disabled}>
<item.icon
className="h-5 w-5 shrink-0"
aria-hidden="true"
@@ -173,8 +174,7 @@ export default function Sidebar() {
: "text-muted-foreground hover:text-foreground hover:bg-gray-200 hover:dark:bg-muted",
"group flex gap-x-3 items-center rounded-md p-2 text-sm leading-6 w-full disabled:hover:bg-transparent disabled:text-muted-foreground disabled:cursor-default"
)}
- disabled={item.disabled}
- >
+ disabled={item.disabled}>
<item.icon
className="h-5 w-5 shrink-0"
aria-hidden="true"
@@ -211,8 +211,7 @@ export default function Sidebar() {
enterTo="transform opacity-100 scale-100"
leave="transition ease-in duration-75"
leaveFrom="transform opacity-100 scale-100"
- leaveTo="transform opacity-0 scale-95"
- >
+ leaveTo="transform opacity-0 scale-95">
<Menu.Items className="absolute left-0 z-10 bottom-0 mb-14 w-full origin-bottom-left rounded-md bg-gray-100 dark:bg-primary-foreground py-2 focus:outline-none">
{session ? (
<>
@@ -229,8 +228,7 @@ export default function Sidebar() {
})
}
className="block px-3 py-1 text-sm leading-6 text-foreground hover:bg-gray-200 hover:dark:bg-muted"
- href={""}
- >
+ href={""}>
Sign Out
</Link>
</Menu.Item>
@@ -253,8 +251,7 @@ export default function Sidebar() {
<button
type="button"
className="-m-2.5 p-2.5 text-muted-foreground lg:hidden"
- onClick={() => setSidebarOpen(true)}
- >
+ onClick={() => setSidebarOpen(true)}>
<span className="sr-only">Open sidebar</span>
<MenuIcon className="h-6 w-6" aria-hidden="true" />
</button>
@@ -278,8 +275,7 @@ export default function Sidebar() {
enterTo="transform opacity-100 scale-100"
leave="transition ease-in duration-75"
leaveFrom="transform opacity-100 scale-100"
- leaveTo="transform opacity-0 scale-95"
- >
+ leaveTo="transform opacity-0 scale-95">
<Menu.Items className="absolute right-0 z-10 mt-2.5 w-fit origin-top-right rounded-md bg-primary-foreground shadow-lg py-2 ring-1 ring-primary-foreground/5 focus:outline-none">
{session ? (
<>
@@ -296,8 +292,7 @@ export default function Sidebar() {
})
}
className="block px-3 py-1 text-sm leading-6 text-foreground hover:bg-gray-200 hover:dark:bg-muted"
- href={""}
- >
+ href={""}>
Sign Out
</Link>
</Menu.Item>
@@ -314,3 +309,16 @@ export default function Sidebar() {
</>
);
}
+
+{
+ /* <Select>
+ <SelectTrigger className="w-[180px]">
+ <SelectValue placeholder="Theme" />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="light">Light</SelectItem>
+ <SelectItem value="dark">Dark</SelectItem>
+ <SelectItem value="system">System</SelectItem>
+ </SelectContent>
+</Select>; */
+}
diff --git a/components/shared/icons/teams.tsx b/components/shared/icons/teams.tsx
new file mode 100644
index 00000000..d82b63fc
--- /dev/null
+++ b/components/shared/icons/teams.tsx
@@ -0,0 +1,21 @@
+import React from "react";
+
+const TeamsIcon = () => {
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ fill="none"
+ viewBox="0 0 24 24"
+ strokeWidth="1.5"
+ stroke="currentColor"
+ className="w-6 h-6">
+ <path
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ d="M18 18.72a9.094 9.094 0 003.741-.479 3 3 0 00-4.682-2.72m.94 3.198l.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0112 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 016 18.719m12 0a5.971 5.971 0 00-.941-3.197m0 0A5.995 5.995 0 0012 12.75a5.995 5.995 0 00-5.058 2.772m0 0a3 3 0 00-4.681 2.72 8.986 8.986 0 003.74.477m.94-3.197a5.971 5.971 0 00-.94 3.197M15 6.75a3 3 0 11-6 0 3 3 0 016 0zm6 3a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0zm-13.5 0a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0z"
+ />
+ </svg>
+ );
+};
+
+export default TeamsIcon;