Make these buttons to avoid weird refresh issues

This commit is contained in:
Dane Everitt 2020-03-18 22:39:52 -07:00
parent b0f47ea01a
commit 4ac6507b69
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -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>
); );
}; };