fix: type fixes

This commit is contained in:
sriram veeraghanta 2023-08-30 20:35:10 +05:30
parent 579347c991
commit a27edad810
2 changed files with 5 additions and 5 deletions

View File

@ -35,14 +35,14 @@ export const ProjectDetailsView = observer(() => {
return ( return (
<div className="relative w-full h-full overflow-hidden"> <div className="relative w-full h-full overflow-hidden">
{/* {workspace_slug && ( {workspace_slug && (
<IssuePeekOverview <IssuePeekOverview
isOpen={Boolean(activeIssueId)} isOpen={Boolean(activeIssueId)}
onClose={() => issueStore.setActivePeekOverviewIssueId(null)} onClose={() => issueStore.setPeekId(null)}
issue={issueStore?.issues?.find((_issue) => _issue.id === activeIssueId) || null} issue={issueStore?.issues?.find((_issue) => _issue.id === activeIssueId) || null}
workspaceSlug={workspace_slug.toString()} workspaceSlug={workspace_slug.toString()}
/> />
)} */} )}
{issueStore?.loader && !issueStore.issues ? ( {issueStore?.loader && !issueStore.issues ? (
<div className="text-sm text-center py-10 text-custom-text-100">Loading...</div> <div className="text-sm text-center py-10 text-custom-text-100">Loading...</div>

View File

@ -24,7 +24,7 @@ export interface IIssueStore {
issueService: any; issueService: any;
// actions // actions
fetchPublicIssues: (workspace_slug: string, project_slug: string, params: any) => void; fetchPublicIssues: (workspace_slug: string, project_slug: string, params: any) => void;
setPeekId: (issueId: string) => void; setPeekId: (issueId: string | null) => void;
getFilteredIssuesByState: (state: string) => IIssue[]; getFilteredIssuesByState: (state: string) => IIssue[];
} }
@ -98,7 +98,7 @@ class IssueStore implements IIssueStore {
} }
}; };
setPeekId = (issueId: string) => { setPeekId = (issueId: string | null) => {
this.peekId = issueId; this.peekId = issueId;
}; };