Skip to content

Commit 281d6d7

Browse files
committed
minor updates
1 parent f0210e3 commit 281d6d7

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

src/components/Layout/useLogin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ const useLogin = (): Requestable<Successful, {}, InProgress, Failed> => {
5454
return { status: RequestStatus.Successful, userStatus, user, login, logout }
5555
}
5656

57-
export default useLogin
57+
export default useLogin

src/global.d.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,19 @@ declare module "*.svg" {
2020
export default value
2121
}
2222

23-
declare module "*.module.css"
23+
declare module "*.module.css";
2424

2525
interface User {
2626
name: string
2727
email: string
2828
picture: string
2929
}
3030

31-
// Define the global AppState.
3231
declare interface AppState {
33-
gapi: typeof gapi | undefined
34-
google: typeof google | undefined
35-
gapiStatus: string | undefined
36-
user: User | undefined
32+
user?: User
33+
gapi?: typeof gapi
34+
gapiStatus?: string
3735
measurementID: string
38-
tokenClient: google.accounts.oauth2.TokenClient | undefined
36+
tokenClient?: google.accounts.oauth2.TokenClient
37+
google?: typeof google
3938
}

0 commit comments

Comments
 (0)