File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export function localizedTime(dateStr: string): JSX.Element {
34
34
return < time dateTime = { dateStr } > { formatted } </ time > ;
35
35
}
36
36
37
- function formatDate ( dateString : string ) : JSX . Element {
37
+ export function formatDate ( dateString : string ) : JSX . Element {
38
38
const formatted = dayjs . utc ( dateString ) . local ( ) . format ( "MMMM D, YYYY" ) ;
39
39
return < time dateTime = { dateString } > { formatted } </ time > ;
40
40
}
@@ -44,19 +44,15 @@ const UPDATED_PRIVACY_POLICY: Notification = {
44
44
type : "info" ,
45
45
preventDismiss : true ,
46
46
onClose : async ( ) => {
47
- console . error ( "Well... happy for you" ) ;
48
47
const userUpdates = { additionalData : { profile : { acceptedPrivacyPolicyDate : dayjs ( ) . toISOString ( ) } } } ;
49
48
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 ) ) ;
53
50
} ,
54
51
message : (
55
52
< 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{ " " }
58
54
< a className = "gp-link" href = "https://www.gitpod.io/privacy" target = "_blank" rel = "noreferrer" >
59
- Review Privacy Policy
55
+ here
60
56
</ a >
61
57
</ span >
62
58
) ,
You can’t perform that action at this time.
0 commit comments