File tree 3 files changed +5
-7
lines changed
3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -115,10 +115,7 @@ const NetworkSettingsPage = lazy(
115
115
"./pages/DeploySettingsPage/NetworkSettingsPage/NetworkSettingsPage"
116
116
) ,
117
117
)
118
- const GitAuthPage = lazy ( ( ) => import ( "./pages/GitAuthPage/GitAuthPageView" ) )
119
- const GitAuthDevicePage = lazy (
120
- ( ) => import ( "./pages/GitAuthDevicePage/GitAuthDevicePage" ) ,
121
- )
118
+ const GitAuthPage = lazy ( ( ) => import ( "./pages/GitAuthPage/GitAuthPage" ) )
122
119
const TemplateVersionPage = lazy (
123
120
( ) => import ( "./pages/TemplateVersionPage/TemplateVersionPage" ) ,
124
121
)
Original file line number Diff line number Diff line change @@ -111,5 +111,6 @@ const useStyles = makeStyles({
111
111
flex : 1 ,
112
112
paddingBottom : dashboardContentBottomPadding , // Add bottom space since we don't use a footer
113
113
display : "flex" ,
114
+ flexDirection : "column" ,
114
115
} ,
115
116
} )
Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ import {
5
5
getGitAuthProvider ,
6
6
} from "api/api"
7
7
import { usePermissions } from "hooks"
8
- import { useEffect } from "react"
8
+ import { FC , useEffect } from "react"
9
9
import { redirect , useParams } from "react-router-dom"
10
10
import { REFRESH_GITAUTH_BROADCAST_CHANNEL } from "xServices/createWorkspace/createWorkspaceXService"
11
11
import GitAuthPageView from "./GitAuthPageView"
12
12
import { ApiErrorResponse } from "api/errors"
13
13
import { isAxiosError } from "axios"
14
14
15
- const GitAuthPage = ( ) => {
15
+ const GitAuthPage : FC = ( ) => {
16
16
const { provider } = useParams ( )
17
17
if ( ! provider ) {
18
18
throw new Error ( "provider must exist" )
@@ -78,7 +78,7 @@ const GitAuthPage = () => {
78
78
! getGitAuthProviderQuery . data . authenticated &&
79
79
! getGitAuthProviderQuery . data . device
80
80
) {
81
- return redirect ( `/gitauth/${ provider } /callback` )
81
+ redirect ( `/gitauth/${ provider } /callback` )
82
82
}
83
83
84
84
return (
You can’t perform that action at this time.
0 commit comments