fix: use issue store was not loading up properly (#8006)

* use issue store was not loading up properly , and hence created data issues for rendering filters options

* Added React.FC for better type suggestions

* chore: observer implementation change

---------

Co-authored-by: shivam-jainn <shivam.clgstash@gmail.com>
This commit is contained in:
sriram veeraghanta 2025-10-23 21:45:25 +05:30 committed by GitHub
parent e5063cd280
commit b65b1b4828
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,7 @@
"use client";
import { useCallback, useState } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// icons
import { Calendar, ChevronDown, Kanban, List } from "lucide-react";
@ -25,7 +26,7 @@ const SUPPORTED_LAYOUTS = [
{ key: "calendar", titleTranslationKey: "issue.layouts.calendar", icon: Calendar },
];
export const CycleIssuesMobileHeader = () => {
export const CycleIssuesMobileHeader = observer(() => {
// router
const { workspaceSlug, projectId, cycleId } = useParams();
// states
@ -151,4 +152,4 @@ export const CycleIssuesMobileHeader = () => {
</div>
</>
);
};
});