Skip to content

Commit 8933b49

Browse files
committed
Fix sideways layout
1 parent ae60ebf commit 8933b49

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

site/src/AppRouter.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,7 @@ const NetworkSettingsPage = lazy(
115115
"./pages/DeploySettingsPage/NetworkSettingsPage/NetworkSettingsPage"
116116
),
117117
)
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"))
122119
const TemplateVersionPage = lazy(
123120
() => import("./pages/TemplateVersionPage/TemplateVersionPage"),
124121
)

site/src/components/Dashboard/DashboardLayout.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,6 @@ const useStyles = makeStyles({
111111
flex: 1,
112112
paddingBottom: dashboardContentBottomPadding, // Add bottom space since we don't use a footer
113113
display: "flex",
114+
flexDirection: "column",
114115
},
115116
})

site/src/pages/GitAuthPage/GitAuthPage.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import {
55
getGitAuthProvider,
66
} from "api/api"
77
import { usePermissions } from "hooks"
8-
import { useEffect } from "react"
8+
import { FC, useEffect } from "react"
99
import { redirect, useParams } from "react-router-dom"
1010
import { REFRESH_GITAUTH_BROADCAST_CHANNEL } from "xServices/createWorkspace/createWorkspaceXService"
1111
import GitAuthPageView from "./GitAuthPageView"
1212
import { ApiErrorResponse } from "api/errors"
1313
import { isAxiosError } from "axios"
1414

15-
const GitAuthPage = () => {
15+
const GitAuthPage: FC = () => {
1616
const { provider } = useParams()
1717
if (!provider) {
1818
throw new Error("provider must exist")
@@ -78,7 +78,7 @@ const GitAuthPage = () => {
7878
!getGitAuthProviderQuery.data.authenticated &&
7979
!getGitAuthProviderQuery.data.device
8080
) {
81-
return redirect(`/gitauth/${provider}/callback`)
81+
redirect(`/gitauth/${provider}/callback`)
8282
}
8383

8484
return (

0 commit comments

Comments
 (0)