-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat / public deploy settings workflow (#1863)
* Feat: Implemented project publish settings * dev: updated the env dependancy in turbo and enabling the publish access to admin
- Loading branch information
1 parent
d2cdaac
commit daa8f7d
Showing
11 changed files
with
1,177 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import React, { Fragment } from "react"; | ||
// headless ui | ||
import { Popover, Transition } from "@headlessui/react"; | ||
|
||
export const CustomPopover = ({ | ||
children, | ||
label, | ||
placeholder = "Select", | ||
}: { | ||
children: React.ReactNode; | ||
label?: string; | ||
placeholder?: string; | ||
}) => ( | ||
<div className="relative"> | ||
<Popover className="relative"> | ||
{({ open }) => ( | ||
<> | ||
<Popover.Button | ||
className={`${ | ||
open ? "" : "" | ||
} relative flex items-center gap-1 border border-custom-border-300 shadow-sm p-1 px-2 ring-0 outline-none`} | ||
> | ||
<div className="text-sm font-medium"> | ||
{label ? label : placeholder ? placeholder : "Select"} | ||
</div> | ||
<div className="w-[20px] h-[20px] relative flex justify-center items-center"> | ||
{!open ? ( | ||
<span className="material-symbols-rounded text-[20px]">expand_more</span> | ||
) : ( | ||
<span className="material-symbols-rounded text-[20px]">expand_less</span> | ||
)} | ||
</div> | ||
</Popover.Button> | ||
|
||
<Transition | ||
as={Fragment} | ||
enter="transition ease-out duration-200" | ||
enterFrom="opacity-0 translate-y-1" | ||
enterTo="opacity-100 translate-y-0" | ||
leave="transition ease-in duration-150" | ||
leaveFrom="opacity-100 translate-y-0" | ||
leaveTo="opacity-0 translate-y-1" | ||
> | ||
<Popover.Panel className="absolute right-0 z-[9999]"> | ||
<div className="overflow-hidden rounded-sm border border-custom-border-300 mt-1 overflow-y-auto bg-custom-background-90 shadow-lg focus:outline-none"> | ||
{children} | ||
</div> | ||
</Popover.Panel> | ||
</Transition> | ||
</> | ||
)} | ||
</Popover> | ||
</div> | ||
); |
Oops, something went wrong.
daa8f7d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
plane-dev – ./apps/app
plane-dev-plane.vercel.app
plane-dev-git-develop-plane.vercel.app
plane-dev.vercel.app