diff --git a/src/components/Survey.svelte b/src/components/Survey.svelte index 8142a25..1603695 100644 --- a/src/components/Survey.svelte +++ b/src/components/Survey.svelte @@ -54,21 +54,26 @@ modalHeading="Survey" iconDescription="close modal" primaryButtonText="예" - secondaryButtons={[{ text: "아니요" }, { text: "나중에" }]} + secondaryButtonText="아니요" selectorPrimaryFocus=".bx--modal-content" on:close={() => handleResponse("no")} size="sm" on:click:button--primary={() => handleResponse("yes")} - on:click:button--secondary={({ detail }) => { - if (detail.text === "아니요") { - handleResponse("no"); - } else if (detail.text === "나중에") { - showSurvey = false; - } - }} + on:click:button--secondary={() => handleResponse("no")} >
"아니요"를 누르거나 창을 닫으면 다시는 이 메시지를 보지 않게 됩니다.
+