chore: update module status icons and colors (#2011)

* chore: update module status icons and colors

* refactor: import statements

* fix: add default alue to module status
This commit is contained in:
Aaryan Khandelwal 2023-08-30 11:43:47 +05:30 committed by GitHub
parent 168e79d6df
commit 2e5ade05fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 321 additions and 21 deletions

View file

@ -2,6 +2,8 @@ import { useRouter } from "next/router";
// ui
import { Tooltip } from "components/ui";
// icons
import { ModuleStatusIcon } from "components/icons";
// helpers
import { renderShortDate } from "helpers/date-time.helper";
// types
@ -49,6 +51,7 @@ export const ModuleGanttSidebarBlock = ({ data }: { data: IModule }) => {
className="relative w-full flex items-center gap-2 h-full"
onClick={() => router.push(`/${workspaceSlug}/projects/${data?.project}/modules/${data.id}`)}
>
<ModuleStatusIcon status={data?.status ?? "backlog"} height="16px" width="16px" />
<h6 className="text-sm font-medium flex-grow truncate">{data.name}</h6>
</div>
);