feat: edit, delete project/workspaces member workflow, order issues by priority
This commit is contained in:
parent
b757609161
commit
7ad10e8e1e
17 changed files with 540 additions and 116 deletions
|
|
@ -10,11 +10,19 @@ import { classNames } from "constants/common";
|
|||
// types
|
||||
import type { MenuItemProps, Props } from "./types";
|
||||
|
||||
const CustomMenu = ({ children, label }: Props) => {
|
||||
const CustomMenu = ({ children, label, textAlignment }: Props) => {
|
||||
return (
|
||||
<Menu as="div" className="relative inline-block text-left">
|
||||
<div>
|
||||
<Menu.Button className="inline-flex w-32 justify-between gap-x-4 rounded-md border border-gray-300 bg-white px-4 py-1 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:ring-offset-gray-100">
|
||||
<Menu.Button
|
||||
className={`inline-flex w-32 justify-between gap-x-4 rounded-md border border-gray-300 bg-white px-4 py-1 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:ring-offset-gray-100 ${
|
||||
textAlignment === "right"
|
||||
? "text-right"
|
||||
: textAlignment === "center"
|
||||
? "text-center"
|
||||
: "text-left"
|
||||
}`}
|
||||
>
|
||||
<span className="truncate w-20">{label}</span>
|
||||
<ChevronDownIcon className="-mr-1 ml-2 h-5 w-5" aria-hidden="true" />
|
||||
</Menu.Button>
|
||||
|
|
|
|||
1
apps/app/ui/CustomMenu/types.d.ts
vendored
1
apps/app/ui/CustomMenu/types.d.ts
vendored
|
|
@ -1,6 +1,7 @@
|
|||
export type Props = {
|
||||
children: React.ReactNode;
|
||||
label: string;
|
||||
textAlignment?: "left" | "center" | "right";
|
||||
};
|
||||
|
||||
export type MenuItemProps = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue