Skip to content

Commit

Permalink
fix(unlock-app): fix paywall modal when closed (#14065)
Browse files Browse the repository at this point in the history
fix for paywall modal when closed
  • Loading branch information
julien51 committed Jun 18, 2024
1 parent 595ce5f commit 4c2ef01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions unlock-app/src/components/interface/checkout/Shell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,8 @@ interface NavigationProps {
onBack?(): void
}

export function TopNavigation({ onClose, onBack }: NavigationProps) {
const navigationClass = `flex items-center p-6 ${
onBack ? 'justify-between' : 'justify-end'
}`
export function TopNavigation({ onClose }: NavigationProps) {
const navigationClass = `flex items-center p-6 justify-end`
return (
<div className={navigationClass}>
{onClose && <CloseButton onClick={() => onClose()} />}
Expand Down
1 change: 1 addition & 0 deletions unlock-app/src/components/interface/checkout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export function CheckoutPage() {
redirectURI={
checkoutRedirectURI ? new URL(checkoutRedirectURI) : undefined
}
communication={communication}
/>
</Container>
)
Expand Down

0 comments on commit 4c2ef01

Please sign in to comment.