Skip to content

Commit

Permalink
do not use extra secondary buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
hslee2008 committed Dec 6, 2023
1 parent 3ad5bec commit 2f52f6d
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/components/Survey.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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")}
>
<div style="margin: 5px; margin-bottom: 30px;">
<h4>설문조사에 참여하시겠습니까?</h4>
<br />
<p>"아니요"를 누르거나 창을 닫으면 다시는 이 메시지를 보지 않게 됩니다.</p>
<br />
<button
class="main-btn"
on:click={() => {
Event("Later Survey", {});
showSurvey = false;
}}
>
나중에 다시 참여하기
</button>
</div>
</Modal>

0 comments on commit 2f52f6d

Please sign in to comment.