content: minor changes in view dropdown and remove edit icon in kanban view

This commit is contained in:
vamsi 2022-12-07 02:54:40 +05:30
parent 54b0252dad
commit d8625b332a
2 changed files with 5 additions and 16 deletions

View File

@ -159,17 +159,6 @@ const SingleBoard: React.FC<Props> = ({
> >
<PlusIcon className="h-4 w-4" /> <PlusIcon className="h-4 w-4" />
</button> </button>
<button
type="button"
className="h-7 w-7 p-1 grid place-items-center rounded hover:bg-gray-200 duration-300 outline-none"
onClick={() =>
setPreloadedData({
actionType: "edit",
})
}
>
<PencilIcon className="h-4 w-4" />
</button>
</div> </div>
</div> </div>
<StrictModeDroppable key={groupTitle} droppableId={groupTitle}> <StrictModeDroppable key={groupTitle} droppableId={groupTitle}>
@ -254,14 +243,14 @@ const SingleBoard: React.FC<Props> = ({
{childIssue.target_date && ( {childIssue.target_date && (
<span className="absolute -top-full mb-2 left-4 border transition-opacity opacity-0 group-hover:opacity-100 bg-white rounded px-2 py-1"> <span className="absolute -top-full mb-2 left-4 border transition-opacity opacity-0 group-hover:opacity-100 bg-white rounded px-2 py-1">
{childIssue.target_date < new Date().toISOString() {childIssue.target_date < new Date().toISOString()
? `Target date has passed by ${findHowManyDaysLeft( ? `Due date has passed by ${findHowManyDaysLeft(
childIssue.target_date childIssue.target_date
)} days` )} days`
: findHowManyDaysLeft(childIssue.target_date) <= 3 : findHowManyDaysLeft(childIssue.target_date) <= 3
? `Target date is in ${findHowManyDaysLeft( ? `Due date is in ${findHowManyDaysLeft(
childIssue.target_date childIssue.target_date
)} days` )} days`
: "Target date"} : "Due date"}
</span> </span>
)} )}
</span> </span>

View File

@ -44,8 +44,8 @@ const groupByOptions: Array<{ name: string; key: NestedKeyOf<IIssue> | null }> =
]; ];
const orderByOptions: Array<{ name: string; key: NestedKeyOf<IIssue> }> = [ const orderByOptions: Array<{ name: string; key: NestedKeyOf<IIssue> }> = [
{ name: "Created", key: "created_at" }, { name: "Last created", key: "created_at" },
{ name: "Update", key: "updated_at" }, { name: "Last updated", key: "updated_at" },
{ name: "Priority", key: "priority" }, { name: "Priority", key: "priority" },
]; ];