feat: added glassmorphism in issue view, made constant file for constant values, fix: using descending order to display issues
This commit is contained in:
parent
5224b3da88
commit
c49e652124
5 changed files with 12 additions and 10 deletions
|
|
@ -5,6 +5,8 @@ import { Controller } from "react-hook-form";
|
|||
import { Listbox, Transition } from "@headlessui/react";
|
||||
// icons
|
||||
import { CheckIcon } from "@heroicons/react/20/solid";
|
||||
// constants
|
||||
import { PRIORITIES } from "constants/";
|
||||
|
||||
// types
|
||||
import type { IIssue } from "types";
|
||||
|
|
@ -15,8 +17,6 @@ type Props = {
|
|||
control: Control<IIssue, any>;
|
||||
};
|
||||
|
||||
const PRIORITIES = ["high", "medium", "low"];
|
||||
|
||||
const SelectPriority: React.FC<Props> = ({ control }) => {
|
||||
return (
|
||||
<Controller
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ import { IIssue, IssueResponse, IState, NestedKeyOf, Properties, WorkspaceMember
|
|||
// hooks
|
||||
import useUser from "lib/hooks/useUser";
|
||||
// fetch keys
|
||||
import { PRIORITIES } from "constants/";
|
||||
import { PROJECT_ISSUES_LIST, WORKSPACE_MEMBERS } from "constants/fetch-keys";
|
||||
// services
|
||||
import issuesServices from "lib/services/issues.services";
|
||||
|
|
@ -36,8 +37,6 @@ type Props = {
|
|||
handleDeleteIssue: React.Dispatch<React.SetStateAction<string | undefined>>;
|
||||
};
|
||||
|
||||
const PRIORITIES = ["high", "medium", "low"];
|
||||
|
||||
const ListView: React.FC<Props> = ({
|
||||
properties,
|
||||
groupedByIssues,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue