From c7de08cbbe930bcaf8de882b12c494664392970f Mon Sep 17 00:00:00 2001 From: ankushKun Date: Thu, 22 Aug 2024 19:30:29 +0530 Subject: [PATCH] licensing coming soon --- .../menubar/components/publish-template.tsx | 38 ++++++++++++++++++- next_app/src/components/ui/select.tsx | 6 +-- 2 files changed, 40 insertions(+), 4 deletions(-) diff --git a/next_app/src/components/menubar/components/publish-template.tsx b/next_app/src/components/menubar/components/publish-template.tsx index 16c4554..e0525a9 100644 --- a/next_app/src/components/menubar/components/publish-template.tsx +++ b/next_app/src/components/menubar/components/publish-template.tsx @@ -12,6 +12,15 @@ import { DialogTitle, DialogTrigger, } from "@/components/ui/dialog" +import { + Select, + SelectContent, + SelectGroup, + SelectItem, + SelectLabel, + SelectTrigger, + SelectValue, +} from "@/components/ui/select" import Arweave from "arweave"; import { Input } from "@/components/ui/input"; import { toast } from "sonner"; @@ -36,6 +45,7 @@ export default function PublishTemplateBtn() { const [tquantity, setTquantity] = useState(1) const [loading, setLoading] = useState(false) const [open, setOpen] = useState(false) + const [license, setLicense] = useState(null) const project = globalState.activeProject && manager.getProject(globalState.activeProject) const files = project && project.files @@ -213,10 +223,36 @@ export default function PublishTemplateBtn() {
- setTquantity(parseInt(e.target.value))} />
+ + +
+ + +
diff --git a/next_app/src/components/ui/select.tsx b/next_app/src/components/ui/select.tsx index fe56d4d..0df7f1e 100644 --- a/next_app/src/components/ui/select.tsx +++ b/next_app/src/components/ui/select.tsx @@ -17,7 +17,7 @@ const SelectTrigger = React.forwardRef< span]:line-clamp-1", + "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", className )} {...props} @@ -75,7 +75,7 @@ const SelectContent = React.forwardRef< className={cn( "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", position === "popper" && - "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", + "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className )} position={position} @@ -86,7 +86,7 @@ const SelectContent = React.forwardRef< className={cn( "p-1", position === "popper" && - "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]" + "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]" )} > {children}