mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 19:01:05 +00:00
chore: format files with Prettier 3
This commit is contained in:
parent
0048796b0b
commit
93469fd893
391 changed files with 3725 additions and 3785 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue