Skip to content

Commit

Permalink
Fixed npm run check errors
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Dec 26, 2024
1 parent e0f87d7 commit 367c110
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</script>

<div role="status">
<svg aria-hidden="true" class={cn(variants({ className, variant }))} fill="none" viewBox="0 0 100 101" xmlns="http://www.w3.org/2000/svg">
<svg aria-hidden="true" class={cn(variants({ variant }), className)} fill="none" viewBox="0 0 100 101" xmlns="http://www.w3.org/2000/svg">
<path
d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z"
fill="currentColor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
let { percent }: Props = $props();
const formatOptions = {
const formatOptions: Intl.NumberFormatOptions = {
maximumFractionDigits: 1,
minimumFractionDigits: 1,
style: 'percent'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
let { children, class: className, variant = 'default', ...props }: Props = $props();
</script>

<a class={cn(variants({ className, variant }))} {...props}>
<a class={cn(variants({ variant }), className)} {...props}>
{#if children}
{@render children()}
{/if}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
this={href ? "a" : "span"}
bind:this={ref}
{href}
class={cn(badgeVariants({ variant, className }))}
class={cn(badgeVariants({ variant }), className)}
{...restProps}
>
{@render children?.()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
{#if href}
<a
bind:this={ref}
class={cn(buttonVariants({ variant, size, className }))}
class={cn(buttonVariants({ variant, size }), className)}
{href}
{...restProps}
>
Expand All @@ -66,7 +66,7 @@
{:else}
<button
bind:this={ref}
class={cn(buttonVariants({ variant, size, className }))}
class={cn(buttonVariants({ variant, size }), className)}
{type}
{...restProps}
>
Expand Down

0 comments on commit 367c110

Please sign in to comment.