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

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

View File

@@ -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 {
file: File | undefined;
@@ -21,9 +21,9 @@
<p class="text-xl font-bold">'{nameShort}' 파일이 있어요.</p>
<p>예전에 이미 업로드된 파일이에요. 그래도 업로드할까요?</p>
</div>
<div class="flex gap-2">
<Button color="gray" onclick={onclose}>아니요</Button>
<Button onclick={onDuplicateClick}>업로드할게요</Button>
<div class="flex gap-x-2">
<Button color="gray" onclick={onclose} class="flex-1">아니요</Button>
<Button onclick={onDuplicateClick} class="flex-1">업로드할게요</Button>
</div>
</div>
{/if}