Skip to content

Commit 6394f9d

Browse files
committed
Remove nonbreaking space from settings
1 parent f48df1f commit 6394f9d

File tree

1 file changed

+52
-45
lines changed

1 file changed

+52
-45
lines changed

components/dashboard/src/admin/Settings.tsx

Lines changed: 52 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { adminMenu } from "./admin-menu";
1414
import { useEffect, useState } from "react";
1515
import InfoBox from "../components/InfoBox";
1616
import { isGitpodIo } from "../utils";
17-
import Separator from "../components/Separator";
1817

1918
export default function Settings() {
2019
const { adminSettings, setAdminSettings } = useContext(AdminContext);
@@ -45,50 +44,58 @@ export default function Settings() {
4544
title="Settings"
4645
subtitle="Configure settings for your Gitpod cluster."
4746
>
48-
<h3>Usage Statistics</h3>
49-
<p className="text-base text-gray-500 pb-4 max-w-2xl">
50-
We collect usage telemetry to gain insights on how you use your Gitpod instance, so we can provide a
51-
better overall experience.{" "}
52-
<a className="gp-link" href="https://www.gitpod.io/privacy">
53-
Read our Privacy Policy
54-
</a>
55-
</p>
56-
<CheckBox
57-
title="Enable usage telemetry"
58-
desc={
59-
<span>
60-
Enable usage telemetry on your Gitpod instance. A preview of your telemetry is available
61-
below.
62-
</span>
63-
}
64-
checked={adminSettings?.sendTelemetry ?? false}
65-
onChange={(evt) =>
66-
actuallySetTelemetryPrefs({
67-
...adminSettings,
68-
sendTelemetry: evt.target.checked,
69-
} as InstallationAdminSettings)
70-
}
71-
/>
72-
<CheckBox
73-
title="Include customer ID in telemetry"
74-
desc={
75-
<span>
76-
Include an optional customer ID in usage telemetry to provide individualized support.
77-
</span>
78-
}
79-
checked={adminSettings?.sendCustomerID ?? false}
80-
onChange={(evt) =>
81-
actuallySetTelemetryPrefs({
82-
...adminSettings,
83-
sendCustomerID: evt.target.checked,
84-
} as InstallationAdminSettings)
85-
}
86-
/>
87-
<Separator />
88-
<h3>Telemetry preview</h3>
89-
<InfoBox>
90-
<pre>{JSON.stringify(telemetryData, null, 2)}</pre>
91-
</InfoBox>
47+
<div className="flex flex-row">
48+
<div>
49+
<h3>Usage Statistics</h3>
50+
<p className="text-base text-gray-500 pb-4 max-w-2xl">
51+
We collect usage telemetry to gain insights on how you use your Gitpod instance, so we can
52+
provide a better overall experience.
53+
</p>
54+
<p>
55+
<a className="gp-link" href="https://www.gitpod.io/privacy">
56+
Read our Privacy Policy
57+
</a>
58+
</p>
59+
<CheckBox
60+
title="Enable usage telemetry"
61+
desc={
62+
<span>
63+
Enable usage telemetry on your Gitpod instance. A preview of your telemetry is
64+
available below.
65+
</span>
66+
}
67+
checked={adminSettings?.sendTelemetry ?? false}
68+
onChange={(evt) =>
69+
actuallySetTelemetryPrefs({
70+
...adminSettings,
71+
sendTelemetry: evt.target.checked,
72+
} as InstallationAdminSettings)
73+
}
74+
/>
75+
<CheckBox
76+
title="Include customer ID in telemetry"
77+
desc={
78+
<span>
79+
Include an optional customer ID in usage telemetry to provide individualized
80+
support.
81+
</span>
82+
}
83+
checked={adminSettings?.sendCustomerID ?? false}
84+
onChange={(evt) =>
85+
actuallySetTelemetryPrefs({
86+
...adminSettings,
87+
sendCustomerID: evt.target.checked,
88+
} as InstallationAdminSettings)
89+
}
90+
/>
91+
</div>
92+
<div>
93+
<h3>Telemetry preview</h3>
94+
<InfoBox className="mt-4">
95+
<pre>{JSON.stringify(telemetryData, null, 2)}</pre>
96+
</InfoBox>
97+
</div>
98+
</div>
9299
</PageWithSubMenu>
93100
</div>
94101
);

0 commit comments

Comments
 (0)