mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-11-04 08:10:28 +09:00
기존에 제작된 모달들을 ActionModal 컴포넌트 기반으로 재구성
This commit is contained in:
1 parent
38a1c8d7e0
commit
7dba1cf4c6
26 files changed
+366
-386
No files matched your search
@@ -0,0 +1,17 @@
|
||||
<script lang="ts">
|
||||
import { RenameModal } from "$lib/components/organisms";
|
||||
import { useContext } from "./service.svelte";
|
||||
|
||||
interface Props {
|
||||
isOpen: boolean;
|
||||
onRenameClick: (newName: string) => Promise<boolean>;
|
||||
}
|
||||
|
||||
let { isOpen = $bindable(), onRenameClick }: Props = $props();
|
||||
let context = useContext();
|
||||
</script>
|
||||
|
||||
{#if context.selectedEntry}
|
||||
{@const { name } = context.selectedEntry}
|
||||
<RenameModal bind:isOpen originalName={name} {onRenameClick} />
|
||||
{/if}
|
||||
Reference in new issue
Block a user