Skip to content

Commit

Permalink
Enabled diagnostic reporting by default and swapped handles of the tw…
Browse files Browse the repository at this point in the history
…o checkboxes on help improve screen
  • Loading branch information
nullhook committed Dec 9, 2022
1 parent d341ef0 commit df10540
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions components/brave_welcome_ui/components/help-improve/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ function InputCheckbox (props: InputCheckboxProps) {
}

function HelpImprove () {
const [isP3AEnabled, setP3AEnabled] = React.useState(false)
const [isMetricsReportingEnabled, setMetricsReportingEnabled] = React.useState(true)
const [isP3AEnabled, setP3AEnabled] = React.useState(true)

const handleP3AChange = () => {
setP3AEnabled(!isP3AEnabled)
Expand Down Expand Up @@ -69,16 +69,16 @@ function HelpImprove () {
</div>
<S.Grid>
<div className="list">
<InputCheckbox
id="p3a"
onChange={handleP3AChange}
isChecked={isP3AEnabled}
labelText={getLocale('braveWelcomeSendReportsLabel')}
/>
<InputCheckbox
id="metrics"
onChange={handleMetricsReportingChange}
isChecked={isMetricsReportingEnabled}
labelText={getLocale('braveWelcomeSendReportsLabel')}
/>
<InputCheckbox
id="p3a"
onChange={handleP3AChange}
isChecked={isP3AEnabled}
labelText={getLocale('braveWelcomeSendInsightsLabel')}
/>
</div>
Expand Down

0 comments on commit df10540

Please sign in to comment.