Skip to content

Commit 4ac6507

Browse files
committed
Make these buttons to avoid weird refresh issues
1 parent b0f47ea commit 4ac6507

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

resources/scripts/components/server/schedules/ScheduleTaskRow.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,22 +75,22 @@ export default ({ schedule, task, onTaskUpdated, onTaskRemoved }: Props) => {
7575
</p>
7676
</div>
7777
}
78-
<a
79-
href={'#'}
78+
<button
79+
type={'button'}
8080
aria-label={'Edit scheduled task'}
8181
className={'block text-sm p-2 text-neutral-500 hover:text-neutral-100 transition-color duration-150 mr-4'}
8282
onClick={() => setIsEditing(true)}
8383
>
8484
<FontAwesomeIcon icon={faPencilAlt}/>
85-
</a>
86-
<a
87-
href={'#'}
85+
</button>
86+
<button
87+
type={'button'}
8888
aria-label={'Delete scheduled task'}
8989
className={'block text-sm p-2 text-neutral-500 hover:text-red-600 transition-color duration-150'}
9090
onClick={() => setVisible(true)}
9191
>
9292
<FontAwesomeIcon icon={faTrashAlt}/>
93-
</a>
93+
</button>
9494
</div>
9595
);
9696
};

0 commit comments

Comments
 (0)