This commit is contained in:
Michael Freno
2025-12-23 08:39:56 -05:00
parent 95b5549352
commit be3e9a9e0b
5 changed files with 63 additions and 43 deletions

View File

@@ -29,9 +29,12 @@ export default function DeletePostButton(props: DeletePostButtonProps) {
return (
<form onSubmit={deletePostTrigger} class="flex w-full justify-end">
<button type="submit">
<Show when={loading()} fallback={<TrashIcon height={24} width={24} strokeWidth={1.5} />}>
<LoadingSpinner height={24} width={24} />
<button type="submit" class="hover:cursor-pointer">
<Show
when={!loading()}
fallback={<LoadingSpinner height={24} width={24} />}
>
<TrashIcon height={24} width={24} strokeWidth={1.5} />
</Show>
</button>
</form>