Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/modals/NostrEventModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ function CopyableField({
}

export function NostrEventModal() {
useLockScroll();
const nostrEventModal = useStore((s) => s.nostrEventModal);
const nostrEventJson = useStore((s) => s.nostrEventJson);
const nostrEventNevent = useStore((s) => s.nostrEventNevent);
const relays = useStore((s) => s.relays);
useLockScroll(nostrEventModal);

const handleClose = useCallback(() => {
useStore.setState({
Expand Down
2 changes: 1 addition & 1 deletion src/components/onboarding/OnboardingOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function OnboardingOverlay() {
const onboardingNostrDone = useStore((s) => s.onboardingNostrDone);
const onboardingWalletOnly = useStore((s) => s.onboardingWalletOnly);
const backupFileContent = useStore((s) => s.onboardingBackupFileContent);
useLockScroll();
useLockScroll(setupModalOpen);

// Reset every onboarding-specific field back to its initial store
// value. Without this, any sub-step the user navigated into (profile
Expand Down
2 changes: 1 addition & 1 deletion src/components/wallet/WalletBackupDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function WalletBackupDialog({
const [passwordError, setPasswordError] = useState("");
const [revealing, setRevealing] = useState(false);

useLockScroll();
useLockScroll(open);
useEscapeKey(open, onClose);

// Auto-reveal when the session password is known (user is unlocked).
Expand Down
2 changes: 1 addition & 1 deletion src/components/wallet/WalletPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function WalletPage() {
[close],
);

useLockScroll();
useLockScroll(walletOpen);
useEscapeKey(walletOpen, close);

// Wallet setup runs exclusively through the onboarding overlay
Expand Down
Loading