Skip to content

Commit

Permalink
fix: adjust modal title of Duplicate group
Browse files Browse the repository at this point in the history
  • Loading branch information
six7 committed Mar 25, 2023
1 parent 5cfb0e0 commit ebddfdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/components/TokenGroup/TokenGroupHeading.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ describe('TokenGroupHeading', () => {
await fireEvent.contextMenu(getByText('color'));
await fireEvent.click(getByText('Duplicate'));

expect(getByText('Duplicate Group')).toBeInTheDocument();
expect(getByText('Duplicate group')).toBeInTheDocument();
});
});
4 changes: 2 additions & 2 deletions src/app/components/modals/DuplicateTokenGroupModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ export default function DuplicateTokenGroupModal({
oldName, newName, tokenSets: selectedTokenSets, type,
});
onClose();
}, [duplicateGroup, oldName, newName, type, selectedTokenSets]);
}, [duplicateGroup, oldName, newName, selectedTokenSets, type, onClose]);

return (
<Modal
title="Duplicate Group"
title="Duplicate group"
isOpen={isOpen}
close={onClose}
large
Expand Down

0 comments on commit ebddfdc

Please sign in to comment.