default false diagnostics, style the welcome

This commit is contained in:
Paul Miller
2024-06-07 10:21:43 -05:00
committed by Tony Giorgio
parent 118b0745d2
commit 4cab32d8ca
2 changed files with 13 additions and 5 deletions

View File

@@ -313,7 +313,7 @@
"zaps_to_hodl_enable": "Enable hodl zaps",
"zaps_to_hodl_disable": "Disable hodl zaps",
"enable_report_diagnostics": "Enable diagnostic reporting?",
"report_diagnostics_desc": "Automatically report critical errors to the developers. All transaction data or other personal information is scrubed and anonymized.",
"report_diagnostics_desc": "Automatically report critical errors to the developers. All transaction data or other personal information is scrubbed and anonymized.",
"report_diagnostics_enable": "Enable diagnostics",
"report_diagnostics_disable": "Disable diagnostics"
}

View File

@@ -12,7 +12,7 @@ export function Setup() {
const [isCreatingNewWallet, setIsCreatingNewWallet] = createSignal(false);
const [isDiagnosticReportingEnabled, setIsDiagnosticReportingEnabled] =
createSignal(true);
createSignal(false);
const navigate = useNavigate();
// default is to set reporting
@@ -83,9 +83,12 @@ export function Setup() {
</Button>
</div>
<div class="flex-1" />
<p class="max-w-[15rem] text-center text-xs font-light text-m-grey-400">
<div class="flex max-w-[20rem] items-center justify-center gap-2 ">
<input
type="checkbox"
name="report_diagnostics"
id="report_diagnostics"
class="mr-2"
checked={isDiagnosticReportingEnabled()}
onChange={() =>
setIsDiagnosticReportingEnabled(
@@ -93,8 +96,13 @@ export function Setup() {
)
}
/>
{i18n.t("setup.initial.reporting")}
</p>
<label
class="text-left text-xs font-light text-m-grey-400"
for="report_diagnostics"
>
{i18n.t("setup.initial.reporting")}
</label>
</div>
</div>
</DefaultMain>
);