mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 16:16:55 +00:00
컴포넌트 관련 사소한 리팩토링
This commit is contained in:
@@ -10,12 +10,12 @@
|
||||
onclick?: () => void;
|
||||
}
|
||||
|
||||
let { children, onclick, ...props }: Props = $props();
|
||||
let { children, class: className, onclick }: Props = $props();
|
||||
</script>
|
||||
|
||||
<button
|
||||
onclick={onclick && (() => setTimeout(onclick, 100))}
|
||||
class={["rounded-xl active:bg-gray-100", props.class]}
|
||||
class={["rounded-xl active:bg-gray-100", className]}
|
||||
>
|
||||
<div class="flex h-full gap-x-4 p-2 transition active:scale-95">
|
||||
<div class="h-full flex-grow">
|
||||
|
||||
Reference in New Issue
Block a user