style: filter issues dropdown (#466)

This commit is contained in:
Aaryan Khandelwal 2023-03-16 18:14:07 +05:30 committed by GitHub
parent 0f06589b83
commit 23c468786d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 115 additions and 59 deletions

View file

@ -42,6 +42,7 @@ import {
STATE_LIST,
} from "constants/fetch-keys";
import { EmptySpace, EmptySpaceItem } from "components/ui";
import { PrimaryButton } from "components/ui/button/primary-button";
type Props = {
type?: "issue" | "cycle" | "module";
@ -496,20 +497,21 @@ export const IssuesView: React.FC<Props> = ({ type = "issue", openIssuesListModa
})}
</div>
<div>
<button
{Object.keys(filters).length > 0 && (
<PrimaryButton
type="button"
onClick={() =>
setCreateViewModal({
query: filters,
})
}
className="flex items-center gap-x-0.5 text-sm"
className="flex items-center gap-4 text-sm"
size="sm"
>
<PlusIcon className="h-3 w-3" />
<span>Save view</span>
</button>
</div>
<PlusIcon className="h-4 w-4" />
Save view
</PrimaryButton>
)}
</div>
<DragDropContext onDragEnd={handleOnDragEnd}>
<StrictModeDroppable droppableId="trashBox">