fix: build error

This commit is contained in:
Dakshesh Jain 2022-12-20 19:40:40 +05:30
parent f80f4b8c23
commit 2dfa9e12cb

View File

@ -126,7 +126,6 @@ const SingleCycle: React.FC = () => {
const { const {
issueView, issueView,
setIssueView,
groupByProperty, groupByProperty,
setGroupByProperty, setGroupByProperty,
groupedByIssues, groupedByIssues,
@ -134,6 +133,8 @@ const SingleCycle: React.FC = () => {
setFilterIssue, setFilterIssue,
orderBy, orderBy,
filterIssue, filterIssue,
setIssueViewToKanban,
setIssueViewToList,
} = useIssuesFilter(cycleIssuesArray ?? []); } = useIssuesFilter(cycleIssuesArray ?? []);
const openCreateIssueModal = ( const openCreateIssueModal = (
@ -269,10 +270,7 @@ const SingleCycle: React.FC = () => {
className={`h-7 w-7 p-1 grid place-items-center rounded hover:bg-gray-200 duration-300 outline-none ${ className={`h-7 w-7 p-1 grid place-items-center rounded hover:bg-gray-200 duration-300 outline-none ${
issueView === "list" ? "bg-gray-200" : "" issueView === "list" ? "bg-gray-200" : ""
}`} }`}
onClick={() => { onClick={() => setIssueViewToList()}
setIssueView("list");
setGroupByProperty(null);
}}
> >
<ListBulletIcon className="h-4 w-4" /> <ListBulletIcon className="h-4 w-4" />
</button> </button>
@ -281,10 +279,7 @@ const SingleCycle: React.FC = () => {
className={`h-7 w-7 p-1 grid place-items-center rounded hover:bg-gray-200 duration-300 outline-none ${ className={`h-7 w-7 p-1 grid place-items-center rounded hover:bg-gray-200 duration-300 outline-none ${
issueView === "kanban" ? "bg-gray-200" : "" issueView === "kanban" ? "bg-gray-200" : ""
}`} }`}
onClick={() => { onClick={() => setIssueViewToKanban()}
setIssueView("kanban");
setGroupByProperty("state_detail.name");
}}
> >
<Squares2X2Icon className="h-4 w-4" /> <Squares2X2Icon className="h-4 w-4" />
</button> </button>