mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
test: fix svelte-check warnings
This commit is contained in:
parent
1dc547427d
commit
caa7294ed6
4 changed files with 8 additions and 4 deletions
|
@ -1,7 +1,8 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Breakpoint } from "../types";
|
import { Breakpoint } from "../types";
|
||||||
|
import { BreakpointSize } from "../types/Breakpoint/Breakpoint";
|
||||||
|
|
||||||
let size;
|
let size: BreakpointSize;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Breakpoint
|
<Breakpoint
|
||||||
|
|
|
@ -35,7 +35,7 @@ export function subtract(a: number, b: number) {
|
||||||
hideCloseButton
|
hideCloseButton
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<CodeSnippet copy="{(text) => {}}"
|
<CodeSnippet copy="{(text) => text}"
|
||||||
>yarn add -D carbon-components-svelte</CodeSnippet
|
>yarn add -D carbon-components-svelte</CodeSnippet
|
||||||
>
|
>
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,6 @@
|
||||||
text="text"
|
text="text"
|
||||||
on:click
|
on:click
|
||||||
on:copy
|
on:copy
|
||||||
copy="{(text) => {}}"
|
copy="{(text) => text}"
|
||||||
feedback="Copied to clipboard"
|
feedback="Copied to clipboard"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -12,7 +12,10 @@
|
||||||
primaryButtonText="Confirm"
|
primaryButtonText="Confirm"
|
||||||
secondaryButtons="{[{ text: 'Cancel' }, { text: 'Duplicate' }]}"
|
secondaryButtons="{[{ text: 'Cancel' }, { text: 'Duplicate' }]}"
|
||||||
secondaryButtonText="Cancel"
|
secondaryButtonText="Cancel"
|
||||||
on:click:button--secondary="{({ detail }) => (open = false)}"
|
on:click:button--secondary="{({ detail }) => {
|
||||||
|
console.log(detail);
|
||||||
|
open = false;
|
||||||
|
}}"
|
||||||
on:open
|
on:open
|
||||||
on:close
|
on:close
|
||||||
on:submit
|
on:submit
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue