refactor: use the other function for submitting

This commit is contained in:
Timothy Z. 2024-10-24 11:56:27 +03:00
parent 8b067ad5b4
commit f8cf7f7ae5

View file

@ -31,7 +31,7 @@ const AddItem = ({ onCancel, handleAddUrl }: Props) => {
onSubmit={onSumbit}
/>
<div className={styles['actions']}>
<Button className={styles['add']} onClick={handleAddUrl}>
<Button className={styles['add']} onClick={onSumbit}>
<Icon name={'checkmark'} className={styles['icon']} />
</Button>
<Button className={styles['cancel']} onClick={onCancel}>