mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 08:06:56 +00:00
기존에 제작된 모달들을 ActionModal 컴포넌트 기반으로 재구성
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
|
||||
interface Props {
|
||||
isOpen: boolean;
|
||||
oncreate: (name: string) => Promise<boolean>;
|
||||
onCreateClick: (name: string) => Promise<boolean>;
|
||||
}
|
||||
|
||||
let { isOpen = $bindable(), oncreate }: Props = $props();
|
||||
let { isOpen = $bindable(), onCreateClick }: Props = $props();
|
||||
</script>
|
||||
|
||||
<TextInputModal
|
||||
@@ -14,5 +14,5 @@
|
||||
title="새 카테고리"
|
||||
placeholder="카테고리 이름"
|
||||
submitText="만들기"
|
||||
onSubmitClick={oncreate}
|
||||
onSubmitClick={onCreateClick}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user