Skip to content

Commit

Permalink
fix: modal appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrofp4444 committed Dec 20, 2023
1 parent 7f0e17b commit 93fbcc3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions apps/app/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function Dashboard() {
info: response.fail,
},
]);
openModal();
notifyInfo("Enviado com successo!");
})
.catch((error) => {
Expand All @@ -82,6 +83,7 @@ function Dashboard() {
info: response.fail,
},
]);
openModal();
notifyInfo("Enviado com successo!");
})
.catch((error) => {
Expand Down Expand Up @@ -115,10 +117,7 @@ function Dashboard() {
title="Tens a certeza que queres notificar?"
cancelText="Não"
okText="Sim"
onConfirm={(_) => {
notify_signup_ninjas();
openModal();
}}
onConfirm={(_) => notify_signup_ninjas()}
>
<Button type="primary">Notificar abertura</Button>
</Popconfirm>
Expand All @@ -132,10 +131,7 @@ function Dashboard() {
title="Tens a certeza que queres notificar?"
cancelText="Não"
okText="Sim"
onConfirm={(_) => {
notify_selected_ninjas();
openModal();
}}
onConfirm={(_) => notify_selected_ninjas()}
>
<Button type="primary">Notificar selecionados</Button>
</Popconfirm>
Expand Down

0 comments on commit 93fbcc3

Please sign in to comment.