forked from Archives/Athou_commafeed
fix unreadable api documentation page with dark theme (#1082)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user