remove stuff
This commit is contained in:
parent
fca900fb9d
commit
f91940a8b3
1 changed files with 1 additions and 8 deletions
|
@ -61,13 +61,6 @@ const ClaimCollectionAdd = (props: Props) => {
|
|||
window.removeEventListener('keydown', altEnterListener);
|
||||
}
|
||||
|
||||
function handleDone() {
|
||||
if (addNewCollection && newCollectionName) {
|
||||
handleAddCollection();
|
||||
}
|
||||
closeModal();
|
||||
}
|
||||
|
||||
function handleClearNew() {
|
||||
setNewCollectionName('');
|
||||
setAddNewCollection(false);
|
||||
|
@ -145,7 +138,7 @@ const ClaimCollectionAdd = (props: Props) => {
|
|||
)}
|
||||
</fieldset-section>
|
||||
<div className="card__actions">
|
||||
<Button button="secondary" label={__('Done')} disabled={addNewCollection} onClick={handleDone} />
|
||||
<Button button="secondary" label={__('Done')} disabled={addNewCollection} onClick={closeModal} />
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue