Skip to content

Commit

Permalink
default false diagnostics, style the welcome
Browse files Browse the repository at this point in the history
  • Loading branch information
futurepaul authored and TonyGiorgio committed Jun 10, 2024
1 parent 118b074 commit 4cab32d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion public/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
16 changes: 12 additions & 4 deletions src/routes/setup/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -83,18 +83,26 @@ 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(
!isDiagnosticReportingEnabled()
)
}
/>
{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>
);
Expand Down

0 comments on commit 4cab32d

Please sign in to comment.