Skip to content

Commit

Permalink
Merge pull request #217 from kimdanielarthur-cowlabs/bugfix-modal-close
Browse files Browse the repository at this point in the history
fix suggestions for #181 & #168
  • Loading branch information
rolznz authored May 7, 2024
2 parents 784db8c + c86b593 commit a8accaf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/bc-modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export class Modal extends withTwind()(BitcoinConnectElement) {
class="absolute top-0 left-0 w-full h-full -z-10 ${classes[
'bg-foreground'
]} animate-darken"
@click=${this._handleClose}
></div>
<div
class="transition-all p-4 pt-6 pb-8 rounded-2xl shadow-2xl flex justify-center items-center w-full bg-white dark:bg-black max-w-md max-sm:rounded-b-none
Expand Down
2 changes: 1 addition & 1 deletion src/components/flows/bc-payment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class SendPaymentFlow extends withTwind()(BitcoinConnectElement) {

override render() {
return this._showConnect && !this.paid
? html` <bc-connect></bc-connect>`
? html` <bc-connect closable=${true}></bc-connect>`
: html`<div class="w-full flex-col justify-center items-center">
<bc-modal-header class="flex w-full" ?closable=${this.closable}>
<p
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ export const WebLNProviders = {
LnbitsWebLNProvider,
};

export {PaymentMethods} from './types/PaymentMethods';
export * from './types/PaymentMethods';

0 comments on commit a8accaf

Please sign in to comment.