From 6e9f3971a55b4701fc3ea78c1aabd77dc4a2aa48 Mon Sep 17 00:00:00 2001 From: Dakshesh Jain <65905942+dakshesh14@users.noreply.github.com> Date: Tue, 18 Jul 2023 12:07:35 +0530 Subject: [PATCH] style: empty state for archive issue (#1541) --- apps/app/components/core/issues-view.tsx | 16 ++++++---------- apps/app/public/empty-state/issue-archive.svg | 3 +++ 2 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 apps/app/public/empty-state/issue-archive.svg diff --git a/apps/app/components/core/issues-view.tsx b/apps/app/components/core/issues-view.tsx index be5abaea5..3bb922ece 100644 --- a/apps/app/components/core/issues-view.tsx +++ b/apps/app/components/core/issues-view.tsx @@ -31,11 +31,11 @@ import { CreateUpdateIssueModal, DeleteIssueModal } from "components/issues"; import { CreateUpdateViewModal } from "components/views"; import { TransferIssues, TransferIssuesModal } from "components/cycles"; // ui -import { EmptyState, PrimaryButton, Spinner } from "components/ui"; +import { EmptyState, PrimaryButton, Spinner, Icon } from "components/ui"; // icons import { PlusIcon, TrashIcon } from "@heroicons/react/24/outline"; // images -import emptyIssue from "public/empty-state/issue.svg"; +import emptyIssue from "public/empty-state/issue-archive.svg"; // helpers import { getStatesList } from "helpers/state.helper"; import { orderArrayBy } from "helpers/array.helper"; @@ -579,16 +579,12 @@ export const IssuesView: React.FC = ({ ) : ( } + buttonText="Go to Automation Settings" onClick={() => { - const e = new KeyboardEvent("keydown", { - key: "c", - }); - document.dispatchEvent(e); + router.push(`/${workspaceSlug}/projects/${projectId}/settings/automations`); }} /> ) diff --git a/apps/app/public/empty-state/issue-archive.svg b/apps/app/public/empty-state/issue-archive.svg new file mode 100644 index 000000000..eee79ff3a --- /dev/null +++ b/apps/app/public/empty-state/issue-archive.svg @@ -0,0 +1,3 @@ + + +