Skip to content

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

ui: project select

Aashish-Upadhyay-101e51db8850392
diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx
index c0bf2923..a4836825 100644
--- a/components/Sidebar.tsx
+++ b/components/Sidebar.tsx
@@ -16,13 +16,14 @@ 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";
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "@/components/ui/select";
+import { PlusIcon } from "lucide-react";
export default function Sidebar() {
const { data: session, status } = useSession();
@@ -161,6 +162,25 @@ export default function Sidebar() {
</p>
</div>
<nav className="flex flex-1 flex-col">
+ <Select defaultValue="aashish">
+ <SelectTrigger className="w-full mb-6">
+ <SelectValue placeholder="Select project" />
+ </SelectTrigger>
+ <SelectContent>
+ <div className="max-h-48 overflow-y-scroll ">
+ <SelectItem value="demo">Demo project</SelectItem>
+ <SelectItem value="aashish">Aashish's Team</SelectItem>
+ <SelectItem value="papermark">
+ College Engineering Group
+ </SelectItem>
+ </div>
+ <div className="flex gap-2 items-center border-t p-2 text-sm hover:bg-gray-800 duration-100 hover:cursor-pointer">
+ <PlusIcon className="h-5 w-5" />
+ Create Team
+ </div>
+ </SelectContent>
+ </Select>
+
<ul role="list" className="flex flex-1 flex-col gap-y-7">
<li>
<ul role="list" className="-mx-2 space-y-1">
@@ -309,16 +329,3 @@ 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>; */
-}