diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/[cycleId]/page.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/[cycleId]/page.tsx index 7adcdeecc..f334d5e19 100644 --- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/[cycleId]/page.tsx +++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/[cycleId]/page.tsx @@ -8,8 +8,12 @@ import { EmptyState } from "@/components/common"; import { PageHead } from "@/components/core"; import { CycleDetailsSidebar } from "@/components/cycles"; import { CycleLayoutRoot } from "@/components/issues/issue-layouts"; +// constants +import { EIssuesStoreType } from "@/constants/issue"; +// helpers +import { cn } from "@/helpers/common.helper"; // hooks -import { useCycle, useProject } from "@/hooks/store"; +import { useCycle, useIssues, useProject } from "@/hooks/store"; import useLocalStorage from "@/hooks/use-local-storage"; // assets import emptyCycle from "@/public/empty-state/cycle.svg"; @@ -21,6 +25,7 @@ const CycleDetailPage = observer(() => { // store hooks const { fetchCycleDetails, getCycleById } = useCycle(); const { getProjectById } = useProject(); + const { issuesFilter } = useIssues(EIssuesStoreType.CYCLE); // hooks const { setValue, storedValue } = useLocalStorage("cycle_sidebar_collapsed", "false"); // fetching cycle details @@ -41,6 +46,8 @@ const CycleDetailPage = observer(() => { */ const toggleSidebar = () => setValue(`${!isSidebarCollapsed}`); + const activeLayout = issuesFilter?.issueFilters?.displayFilters?.layout; + return ( <> @@ -62,7 +69,9 @@ const CycleDetailPage = observer(() => { {cycleId && !isSidebarCollapsed && (
{ // store hooks const { fetchModuleDetails, getModuleById } = useModule(); const { getProjectById } = useProject(); + const { issuesFilter } = useIssues(EIssuesStoreType.MODULE); // local storage const { setValue, storedValue } = useLocalStorage("module_sidebar_collapsed", "false"); const isSidebarCollapsed = storedValue ? (storedValue === "true" ? true : false) : false; @@ -42,6 +47,8 @@ const ModuleIssuesPage = observer(() => { if (!workspaceSlug || !projectId || !moduleId) return <>; + const activeLayout = issuesFilter?.issueFilters?.displayFilters?.layout; + return ( <> @@ -62,7 +69,9 @@ const ModuleIssuesPage = observer(() => {
{moduleId && !isSidebarCollapsed && (