Skip to content

Commit 114049b

Browse files
committed
UI fix
1 parent 54dce58 commit 114049b

1 file changed

Lines changed: 7 additions & 16 deletions

File tree

App.tsx

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -568,16 +568,17 @@ const App: React.FC = () => {
568568
)}
569569
</main>
570570

571-
<EditorModal
572-
isOpen={isEditorOpen}
571+
<CombinedPromptModal
572+
isOpen={promptModalOpen}
573573
onClose={() => {
574-
setIsEditorOpen(false);
575-
setEditingPrompt(null);
574+
setPromptModalOpen(false);
575+
setPromptModalPrompt(null);
576576
}}
577577
onSave={handleSavePrompt}
578+
prompt={promptModalPrompt}
578579
categories={categories}
579-
initialPrompt={editingPrompt}
580-
initialCategoryId={selectedCategoryId}
580+
onTemplateRequest={handleTemplateRequest}
581+
onCopy={copyToClipboard}
581582
/>
582583

583584
<ImportResultModal
@@ -599,16 +600,6 @@ const App: React.FC = () => {
599600
}}
600601
/>
601602

602-
<ExpandedPromptModal
603-
isOpen={expandedPrompt !== null}
604-
prompt={expandedPrompt}
605-
category={expandedPrompt ? categories.find(c => c.id === expandedPrompt.categoryId) : undefined}
606-
onClose={() => setExpandedPrompt(null)}
607-
onEdit={handleEditPrompt}
608-
onTemplateRequest={handleTemplateRequest}
609-
onCopy={copyToClipboard}
610-
/>
611-
612603
<BulkTagsModal
613604
isOpen={showBulkTagsModal}
614605
allExistingTags={Object.keys(tagCounts).sort()}

0 commit comments

Comments
 (0)