dev: new create issue modal (#3312)

This commit is contained in:
Aaryan Khandelwal 2024-01-04 16:29:18 +05:30 committed by sriram veeraghanta
parent 46e79dde27
commit 64ca267db4
18 changed files with 1004 additions and 1206 deletions

View file

@ -60,7 +60,6 @@ export const CommandPalette: FC = observer(() => {
isDeleteIssueModalOpen,
toggleDeleteIssueModal,
isAnyModalOpen,
createIssueStoreType,
} = commandPalette;
const { setToastAlert } = useToast();
@ -215,11 +214,8 @@ export const CommandPalette: FC = observer(() => {
<CreateUpdateIssueModal
isOpen={isCreateIssueModalOpen}
handleClose={() => toggleCreateIssueModal(false)}
prePopulateData={
cycleId ? { cycle_id: cycleId.toString() } : moduleId ? { module_id: moduleId.toString() } : undefined
}
currentStore={createIssueStoreType}
onClose={() => toggleCreateIssueModal(false)}
data={cycleId ? { cycle_id: cycleId.toString() } : moduleId ? { module_id: moduleId.toString() } : undefined}
/>
{workspaceSlug && projectId && issueId && issueDetails && (