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 @@
|
||||
import { AdaptiveDiv } from "$lib/components/atoms";
|
||||
|
||||
interface Props {
|
||||
children?: Snippet;
|
||||
children: Snippet;
|
||||
class?: ClassValue;
|
||||
isOpen: boolean;
|
||||
onclose?: () => void;
|
||||
@@ -25,7 +25,7 @@
|
||||
<AdaptiveDiv class="h-full">
|
||||
<div class="flex h-full items-center justify-center px-4">
|
||||
<div onclick={(e) => e.stopPropagation()} class={["rounded-2xl bg-white p-4", className]}>
|
||||
{@render children?.()}
|
||||
{@render children()}
|
||||
</div>
|
||||
</div>
|
||||
</AdaptiveDiv>
|
||||
|
||||
Reference in New Issue
Block a user