fix unreadable api documentation page with dark theme (#1082)

This commit is contained in:
Athou
2023-06-16 20:07:36 +02:00
parent c835d805b1
commit 6944d4dc0b

View File

@@ -1,8 +1,14 @@
import { Box } from "@mantine/core"
import SwaggerUI from "swagger-ui-react"
import "swagger-ui-react/swagger-ui.css"
function ApiDocumentationPage() {
return <SwaggerUI url="swagger/swagger.json" />
return (
// force white background because swagger is unreadable with dark theme
<Box style={{ backgroundColor: "#fff" }}>
<SwaggerUI url="swagger/swagger.json" />
</Box>
)
}
export default ApiDocumentationPage