Button 및 Input 컴포넌트를 atoms 디렉터리로 이동 및 리팩토링

This commit is contained in:
static committed 2025-01-24 16:39:09 +09:00
1 parent a01137bbf9
commit 1c09d93b41
33 files changed
+145 -172

No files matched your search

@@ -1,6 +1,6 @@
<script lang="ts">
import { Modal } from "$lib/components";
import { Button } from "$lib/components/buttons";
import { Button } from "$lib/components/atoms";
interface Props {
onContinueClick: () => void;
@@ -16,16 +16,9 @@
<p class="text-xl font-bold">내보내지 않고 계속할까요?</p>
<p>암호 키 파일은 유출 방지를 위해 이 화면에서만 저장할 수 있어요.</p>
</div>
<div class="flex gap-2">
<Button
color="gray"
onclick={() => {
isOpen = false;
}}
>
아니요
</Button>
<Button onclick={onContinueClick}>계속할게요</Button>
<div class="flex gap-x-2">
<Button color="gray" onclick={() => (isOpen = false)} class="flex-1">아니요</Button>
<Button onclick={onContinueClick} class="flex-1">계속할게요</Button>
</div>
</div>
</Modal>