Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
gavingolden committed Dec 15, 2024
1 parent d0b5a71 commit f9dcf92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
14 changes: 3 additions & 11 deletions packages/svelte-ux/src/lib/components/ThemeSwitch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
export let classes: {
icon?: string;
} & ComponentProps<Switch>["classes"] = {};
} & ComponentProps<Switch>['classes'] = {};
</script>

<Switch
Expand All @@ -34,18 +32,12 @@
<Icon
data={mdiWeatherNight}
size=".8rem"
class={cls(
"row-[1] col-[1] text-primary opacity-0 dark:opacity-100",
classes.icon,
)}
class={cls('row-[1] col-[1] text-primary opacity-0 dark:opacity-100', classes.icon)}
/>
<Icon
data={mdiWhiteBalanceSunny}
size=".8rem"
class={cls(
"row-[1] col-[1] text-primary opacity-100 dark:opacity-0",
classes.icon,
)}
class={cls('row-[1] col-[1] text-primary opacity-100 dark:opacity-0', classes.icon)}
/>
</div>
</Switch>
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
<h2>Custom Icon Color</h2>

<Preview>
<ThemeSwitch classes={{icon: 'text-yellow-500'}} />
<ThemeSwitch classes={{ icon: 'text-yellow-500' }} />
</Preview>

0 comments on commit f9dcf92

Please sign in to comment.