Skip to content

Commit 197b556

Browse files
committed
Update copy
1 parent c2e46f0 commit 197b556

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

components/dashboard/src/AppNotifications.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function localizedTime(dateStr: string): JSX.Element {
3434
return <time dateTime={dateStr}>{formatted}</time>;
3535
}
3636

37-
function formatDate(dateString: string): JSX.Element {
37+
export function formatDate(dateString: string): JSX.Element {
3838
const formatted = dayjs.utc(dateString).local().format("MMMM D, YYYY");
3939
return <time dateTime={dateString}>{formatted}</time>;
4040
}
@@ -44,19 +44,15 @@ const UPDATED_PRIVACY_POLICY: Notification = {
4444
type: "info",
4545
preventDismiss: true,
4646
onClose: async () => {
47-
console.error("Well... happy for you");
4847
const userUpdates = { additionalData: { profile: { acceptedPrivacyPolicyDate: dayjs().toISOString() } } };
4948
const previousUser = await getGitpodService().server.getLoggedInUser();
50-
const user = await getGitpodService().server.updateLoggedInUser(deepMerge(previousUser, userUpdates));
51-
52-
console.log(user);
49+
await getGitpodService().server.updateLoggedInUser(deepMerge(previousUser, userUpdates));
5350
},
5451
message: (
5552
<span className="text-md">
56-
We've updated the Gitpod Privacy Policy on{" "}
57-
<span className="font-semibold">{formatDate(PRIVACY_POLICY_LAST_UPDATED)}</span>.{" "}
53+
We've updated our Privacy Policy.It is available{" "}
5854
<a className="gp-link" href="https://www.gitpod.io/privacy" target="_blank" rel="noreferrer">
59-
Review Privacy Policy
55+
here
6056
</a>
6157
</span>
6258
),

0 commit comments

Comments
 (0)