mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21: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
|
@ -12,20 +12,20 @@
|
|||
let checked = false;
|
||||
</script>
|
||||
|
||||
<Button on:click="{() => (open = true)}">Review changes</Button>
|
||||
<Button on:click={() => (open = true)}>Review changes</Button>
|
||||
|
||||
<ComposedModal bind:open on:submit="{() => (open = false)}">
|
||||
<ComposedModal bind:open on:submit={() => (open = false)}>
|
||||
<ModalHeader label="Changes" title="Confirm changes" />
|
||||
<ModalBody hasForm>
|
||||
<Checkbox labelText="I have reviewed the changes" bind:checked />
|
||||
</ModalBody>
|
||||
<ModalFooter
|
||||
primaryButtonText="Proceed"
|
||||
primaryButtonDisabled="{!checked}"
|
||||
secondaryButtons="{[{ text: 'Cancel' }, { text: 'Review' }]}"
|
||||
on:click:button--secondary="{({ detail }) => {
|
||||
if (detail.text === 'Cancel') open = false;
|
||||
if (detail.text === 'Review') console.log('Review');
|
||||
}}"
|
||||
primaryButtonDisabled={!checked}
|
||||
secondaryButtons={[{ text: "Cancel" }, { text: "Review" }]}
|
||||
on:click:button--secondary={({ detail }) => {
|
||||
if (detail.text === "Cancel") open = false;
|
||||
if (detail.text === "Review") console.log("Review");
|
||||
}}
|
||||
/>
|
||||
</ComposedModal>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue