diff --git a/components/ArticlePages.tsx b/components/ArticlePages.tsx index e5be105..50ca435 100644 --- a/components/ArticlePages.tsx +++ b/components/ArticlePages.tsx @@ -5,9 +5,9 @@ interface ArticlePagesProps { pages: Page[] } -export function ArticlePages({ pages }: ArticlePagesProps): React.ReactElement { +export function ArticlePages({ pages }: ArticlePagesProps): React.ReactElement | null { if (!pages || pages.length === 0) { - return <> + return null } return ( diff --git a/components/AuthorPresentationEditor.tsx b/components/AuthorPresentationEditor.tsx index 4bf2272..9713a53 100644 --- a/components/AuthorPresentationEditor.tsx +++ b/components/AuthorPresentationEditor.tsx @@ -232,7 +232,7 @@ function PresentationForm({ {hasExistingPresentation && ( - + { void handleDelete() }} deleting={deleting} /> )} @@ -392,7 +392,7 @@ function NoAccountView(): React.ReactElement {

{error &&

{error}

} { void handleGenerate() }} onImport={() => setShowImportModal(true)} /> {generating && ( @@ -482,7 +482,7 @@ function AuthorPresentationFormView({ loading={state.loading} handleSubmit={state.handleSubmit} deleting={state.deleting} - handleDelete={state.handleDelete} + handleDelete={() => { void state.handleDelete() }} hasExistingPresentation={existingPresentation !== null && existingPresentation !== undefined} /> ) diff --git a/components/ConnectButton.tsx b/components/ConnectButton.tsx index 1612320..659a201 100644 --- a/components/ConnectButton.tsx +++ b/components/ConnectButton.tsx @@ -165,7 +165,7 @@ export function ConnectButton(): React.ReactElement { error={error ?? createError} showUnlockModal={showUnlockModal} setShowUnlockModal={setShowUnlockModal} - onCreateAccount={handleCreateAccount} + onCreateAccount={() => { void handleCreateAccount() }} /> {showRecoveryStep && ( { void handleImport() }, setStep, setError, - handleGenerate, + () => { void handleGenerate() }, onClose ) } diff --git a/components/CreateAccountModalSteps.tsx b/components/CreateAccountModalSteps.tsx index ff177b7..4703de4 100644 --- a/components/CreateAccountModalSteps.tsx +++ b/components/CreateAccountModalSteps.tsx @@ -26,7 +26,7 @@ export function RecoveryStep({

{t('account.create.recovery.title')}

- + { void handleCopy() }} />
)} - {/* Sync Progress Bar */} - {publicKeys && } + {/* Sync Progress Bar - Always show if connected, even if publicKeys not loaded yet */} + {!publicKeys && !accountExists && (
diff --git a/components/UnlockAccountModal.tsx b/components/UnlockAccountModal.tsx index 221267f..209e0a3 100644 --- a/components/UnlockAccountModal.tsx +++ b/components/UnlockAccountModal.tsx @@ -213,6 +213,7 @@ function UnlockAccountForm({