Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
miku448 committed Feb 26, 2025
1 parent 1237595 commit 4f89ccf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 0 additions & 5 deletions apps/novel-builder/src/modals/BackgroundEditModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,6 @@ export default function BackgroundEditModal() {
}
/>
</div>
<div className="BackgroundEditModal__generate">
<Button theme="gradient" onClick={() => setShowGenerateModal(true)}>
<BsStars /> Generate New Image
</Button>
</div>
<div className="BackgroundEditModal__delete">
<Button onClick={handleDeleteBackground} theme="primary">
Delete background
Expand Down
12 changes: 11 additions & 1 deletion apps/novel-builder/src/modals/character/CharacterOutfitsEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,17 @@ export default function CharacterOutfitsEdit({ characterId }: { characterId?: st
<Accordion
selectedIndex={selectedItemByIndex}
onChange={(index) => setSelectedItemByIndex(index)}
onRemoveItem={(index) => handleRemoveGroup(index)}
onRemoveItem={(index) => {
openModal({
onYes: () => {
handleRemoveGroup(index);
},
title: 'Are you sure?',
description: 'This action will remove the outfit and all the emotions associated with it.',
noLabel: 'Cancel',
yesLabel: 'Remove',
});
}}
>
{renderEmotionGroups()}
</Accordion>
Expand Down

0 comments on commit 4f89ccf

Please sign in to comment.