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:
parent
e5063cd280
commit
b65b1b4828
1 changed files with 3 additions and 2 deletions
|
|
@ -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>
|
||||
</>
|
||||
);
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue