Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Valexr committed Nov 8, 2024
1 parent 69cf582 commit 3e094eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 22 deletions.
4 changes: 1 addition & 3 deletions src/lib/components/Control.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
import { images } from '$lib/images';
import { dates } from '$lib/dates';
interface Props {active: string | undefined}
</script>

<script lang="ts">
let { active }: Props = $props();
let { active = '' } = $props();
function randomQuote(e: MouseEvent) {
const { id } = e.target as HTMLButtonElement;
Expand Down
25 changes: 6 additions & 19 deletions src/lib/components/Icon.svelte
Original file line number Diff line number Diff line change
@@ -1,27 +1,14 @@
<script lang="ts" module>
interface Props {
id: string,
name: string,
size: string,
color: string,
rotate: number,
spin: boolean,
style: string,
bordered: boolean
}
</script>

<script lang="ts">
let {
id = "",
name = "Close",
size = "16px",
color = "currentColor",
id = '',
name = 'Close',
size = '16px',
color = 'currentColor',
rotate = 0,
spin = false,
style = "",
style = '',
bordered = false,
}: Partial<Props> = $props()
} = $props();
</script>

<svg
Expand Down

0 comments on commit 3e094eb

Please sign in to comment.