Skip to content

Commit f7a5c94

Browse files
committed
refactor: import for Switch
1 parent e024315 commit f7a5c94

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/lib/inputs/Switch.svelte

+2-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
import { getColor } from "$lib/assets/scripts/colors";
55
import type { Colors, Depths } from "$lib/assets/scripts/colors";
66
import { theme as theme_store } from "../stores";
7-
7+
import { tweened } from "svelte/motion";
8+
import { cubicInOut } from "svelte/easing";
89
910
// ------------------ Apperance ------------------
1011
@@ -65,9 +66,6 @@
6566
6667
// ------------------ Animation ------------------
6768
68-
import { tweened } from "svelte/motion";
69-
import { cubicInOut } from "svelte/easing";
70-
import type { IconList } from "$lib/assets/scripts/icons";
7169
let anim = (dur: number) => { return tweened(5, { duration: dur, easing: cubicInOut }) };
7270
let base_pos = { start: 5, end: 45 };
7371
let knob_pos = anim(400), knob_shadow_1_pos = anim(455), knob_shadow_2_pos = anim(510);

0 commit comments

Comments
 (0)