Make these buttons to avoid weird refresh issues
This commit is contained in:
parent
b0f47ea01a
commit
4ac6507b69
1 changed files with 6 additions and 6 deletions
|
@ -75,22 +75,22 @@ export default ({ schedule, task, onTaskUpdated, onTaskRemoved }: Props) => {
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
<a
|
<button
|
||||||
href={'#'}
|
type={'button'}
|
||||||
aria-label={'Edit scheduled task'}
|
aria-label={'Edit scheduled task'}
|
||||||
className={'block text-sm p-2 text-neutral-500 hover:text-neutral-100 transition-color duration-150 mr-4'}
|
className={'block text-sm p-2 text-neutral-500 hover:text-neutral-100 transition-color duration-150 mr-4'}
|
||||||
onClick={() => setIsEditing(true)}
|
onClick={() => setIsEditing(true)}
|
||||||
>
|
>
|
||||||
<FontAwesomeIcon icon={faPencilAlt}/>
|
<FontAwesomeIcon icon={faPencilAlt}/>
|
||||||
</a>
|
</button>
|
||||||
<a
|
<button
|
||||||
href={'#'}
|
type={'button'}
|
||||||
aria-label={'Delete scheduled task'}
|
aria-label={'Delete scheduled task'}
|
||||||
className={'block text-sm p-2 text-neutral-500 hover:text-red-600 transition-color duration-150'}
|
className={'block text-sm p-2 text-neutral-500 hover:text-red-600 transition-color duration-150'}
|
||||||
onClick={() => setVisible(true)}
|
onClick={() => setVisible(true)}
|
||||||
>
|
>
|
||||||
<FontAwesomeIcon icon={faTrashAlt}/>
|
<FontAwesomeIcon icon={faTrashAlt}/>
|
||||||
</a>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue