chore: format files with Prettier 3

This commit is contained in:
Eric Liu 2024-11-11 21:27:04 -08:00
commit 93469fd893
391 changed files with 3725 additions and 3785 deletions

View file

@ -19,7 +19,7 @@
} as const satisfies Record<State, State>;
let timeout: NodeJS.Timeout | undefined = undefined;
let state: State= "dormant";
let state: State = "dormant";
function reset(incomingState?: State) {
if (typeof timeout === "number") {
@ -41,14 +41,14 @@
<ButtonSet>
<Button
kind="ghost"
disabled="{state === 'dormant' || state === 'finished'}"
on:click="{() => (state = 'inactive')}"
disabled={state === "dormant" || state === "finished"}
on:click={() => (state = "inactive")}
>
Cancel
</Button>
{#if state !== "dormant"}
<InlineLoading status="{state}" description="{descriptionMap[state]}" />
<InlineLoading status={state} description={descriptionMap[state]} />
{:else}
<Button on:click="{() => (state = 'active')}">Submit</Button>
<Button on:click={() => (state = "active")}>Submit</Button>
{/if}
</ButtonSet>