1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-21 14:19:39 +02:00

Make new account modal close as clickable button (#492)

Co-authored-by: Sriram Krishnan <sriram@seafoodsouq.com>
This commit is contained in:
Sriram 2024-02-27 22:55:36 +05:30 committed by GitHub
parent eceff08a4d
commit d3b326d273
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View file

@ -13,4 +13,8 @@ export default class extends Controller {
this.element.close(); this.element.close();
} }
} }
close() {
this.element.close();
}
} }

View file

@ -29,7 +29,7 @@
</div> </div>
</div> </div>
<div class="flex items-center space-x-2"> <div class="flex items-center space-x-2">
<span>Close</span> <kbd class="bg-alpha-black-50 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.1)] p-1 rounded-md flex w-8 h-5 shrink-0 grow-0 items-center justify-center text-xs">ESC</kbd> <button data-action="modal#close">Close</button> <kbd class="bg-alpha-black-50 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.1)] p-1 rounded-md flex w-8 h-5 shrink-0 grow-0 items-center justify-center text-xs">ESC</kbd>
</div> </div>
</div> </div>
<% elsif params[:step] == 'method' && @account.accountable.present? %> <% elsif params[:step] == 'method' && @account.accountable.present? %>
@ -57,7 +57,7 @@
</div> </div>
</div> </div>
<div class="flex items-center space-x-2"> <div class="flex items-center space-x-2">
<span>Close</span> <kbd class="bg-alpha-black-50 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.1)] p-1 rounded-md flex w-8 h-5 shrink-0 grow-0 items-center justify-center text-xs">ESC</kbd> <button data-action="modal#close">Close</button> <kbd class="bg-alpha-black-50 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.1)] p-1 rounded-md flex w-8 h-5 shrink-0 grow-0 items-center justify-center text-xs">ESC</kbd>
</div> </div>
</div> </div>
<% else %> <% else %>