Skip to content

Commit

Permalink
Merge pull request #302 from shapehq/develop
Browse files Browse the repository at this point in the history
Deploy to production
  • Loading branch information
simonbs authored Aug 1, 2024
2 parents 8e13c10 + e3eb2ff commit 27ef780
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/app/auth/signin/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,7 @@ const SignInWithGitHub = () => {
<form
action={async () => {
"use server"
try {
await signIn("github", { redirectTo: "/" })
} catch (error) {
console.error(error)
throw error
}
await signIn("github", { redirectTo: "/" })
}}
>
<Button variant="outlined" type="submit">
Expand Down
5 changes: 4 additions & 1 deletion src/features/docs/view/Swagger.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import { useState } from "react"
import SwaggerUI from "swagger-ui-react"
import "swagger-ui-react/swagger-ui.css"
import { Box } from "@mui/material"
import LoadingWrapper from "./LoadingWrapper"

const Swagger = ({ url }: { url: string }) => {
const [isLoading, setLoading] = useState(true)
return (
<LoadingWrapper showLoadingIndicator={isLoading}>
<SwaggerUI url={url} onComplete={() => setLoading(false)} deepLinking persistAuthorization />
<Box sx={{ paddingBottom: 1 }}>
<SwaggerUI url={url} onComplete={() => setLoading(false)} deepLinking persistAuthorization />
</Box>
</LoadingWrapper>
)
}
Expand Down

0 comments on commit 27ef780

Please sign in to comment.