mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 16:16:55 +00:00
레이아웃에 필수적인 Snippet은 반드시 전달해야하도록 Props 타입 수정
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
interface Props {
|
||||
actionButtonClass?: ClassValue;
|
||||
actionButtonIcon?: Component<SvelteHTMLElements["svg"]>;
|
||||
children?: Snippet;
|
||||
children: Snippet;
|
||||
class?: ClassValue;
|
||||
onActionButtonClick?: () => void;
|
||||
onclick?: () => void;
|
||||
@@ -28,9 +28,9 @@
|
||||
onclick={onclick && (() => setTimeout(onclick, 100))}
|
||||
class={["rounded-xl", className]}
|
||||
>
|
||||
<div id="children" class="flex h-full items-center justify-between gap-x-4 p-2 transition">
|
||||
<div id="children" class="flex h-full items-center gap-x-4 p-2 transition">
|
||||
<div class="flex-grow overflow-x-hidden">
|
||||
{@render children?.()}
|
||||
{@render children()}
|
||||
</div>
|
||||
{#if ActionButtonIcon}
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user