Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor styling updates for better readability in analytics banner #187

Merged
merged 2 commits into from
Jul 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions src/renderer/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ function AnalyticsBanner() {
const [analyticsEnabled, setAnalyticsEnabled] = useState(true);

return (
<Container>
<div className="mt-2">
<h3>Will you help us out?</h3>
<Container className="mt-2 ml-2">
<div className="mb-2">
<h3 className="text-xl font-bold">Will you help us out?</h3>
Workbench collects telemetry data to improve your experience. You can
audit this code on{' '}
<a
Expand All @@ -142,19 +142,23 @@ function AnalyticsBanner() {
</a>
. You can opt out below.
</div>
<div className="mt-2 mb-2">
<div className="mb-2">
<h5>What We Collect</h5>
<ul>
<li>Which features are popular</li>
<li>System properties like OS version</li>
<li>How often people are using Workbench</li>
<li className="list-disc list-inside">Which features are popular</li>
<li className="list-disc list-inside">
System properties like OS version
</li>
<li className="list-disc list-inside">
How often people are using Workbench
</li>
</ul>
We do not collect addresses or private keys.
</div>
<div className="mb-2">We do not collect addresses or private keys.</div>
<Form>
<Form.Check
type="switch"
className="d-inline-block"
className="d-inline-block font-medium"
id="analytics-ok-switch"
label="Yes, enable telemetry"
checked={analyticsEnabled}
Expand Down Expand Up @@ -242,6 +246,8 @@ function App() {

Object.assign(console, logger?.functions);

return <AnalyticsBanner />;

if (config.loading) {
return <>Config Loading ...${accounts.loading}</>;
}
Expand Down