Skip to content

Commit

Permalink
fixup! feat: enable setting logging level in the application
Browse files Browse the repository at this point in the history
  • Loading branch information
greatertomi committed Jan 31, 2025
1 parent 7854011 commit ed97bfc
Showing 1 changed file with 20 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,25 @@ export const SettingsLogging = (): ReactElement => {
};

return (
<>
<SettingsCard>
<Title level={5} className={styles.heading5} data-testid={'debugger-heading'}>
{t('browserView.settings.debugging.title')}
</Title>
<SettingsLink
onClick={handleLoggingOnChange}
description={t('browserView.settings.debugging.description')}
addon={
<Switch
testId="settings-logging-switch"
checked={isLoggingEnabled}
onChange={() => setIsLoggingEnabled(!isLoggingEnabled)}
className={styles.analyticsSwitch}
/>
}
data-testid="settings-logging-level-section"
>
{t('browserView.settings.debugging.title')}
</SettingsLink>
</SettingsCard>
</>
<SettingsCard>
<Title level={5} className={styles.heading5} data-testid={'debugger-heading'}>
{t('browserView.settings.debugging.title')}
</Title>
<SettingsLink
onClick={handleLoggingOnChange}
description={t('browserView.settings.debugging.description')}
addon={
<Switch
testId="settings-logging-switch"
checked={isLoggingEnabled}
onChange={() => setIsLoggingEnabled(!isLoggingEnabled)}
className={styles.analyticsSwitch}
/>
}
data-testid="settings-logging-level-section"
>
{t('browserView.settings.debugging.title')}
</SettingsLink>
</SettingsCard>
);
};

0 comments on commit ed97bfc

Please sign in to comment.