@@ -108,7 +76,10 @@ export function CliAccountSection(props: CliAccountSectionProps): ReactNode {
))}
{failure === undefined ? null :
{failure.text}{diagnostic === undefined ? null : <> {diagnostic}>}
}
{t('hint')}
- {children}
+ {confirming === undefined ? null : (
+
{ setConfirming(undefined) }} onConfirm={confirming.action.onClick} />
+ )}
)
}
@@ -166,51 +137,94 @@ export function CliAccountActivation({ t, phase, onDismiss, onConnect }: CliAcco
)
}
-/** A confirmation's copy and callbacks, with the plugin's translator for the shared buttons. */
+/** The question, its callbacks, and the plugin's translator for the shared buttons. */
export interface CliAccountConfirmProps {
readonly t: Translate