Skip to content

Commit

Permalink
chore: synchronize workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jan 21, 2025
1 parent dbf63f8 commit d384450
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
5 changes: 2 additions & 3 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,9 @@ const config: Config = {
},
],
[
'@docusaurus/plugin-svgr',
"@docusaurus/plugin-svgr",
{
svgrConfig: {
},
svgrConfig: {},
},
],
],
Expand Down
17 changes: 10 additions & 7 deletions src/components/ConfigEditor/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import RefParser from "@apidevtools/json-schema-ref-parser"
import { withTheme } from '@rjsf/core';
import { Theme as Bootstrap4Theme } from '@rjsf/bootstrap-4';
import { withTheme } from "@rjsf/core"
import { Theme as Bootstrap4Theme } from "@rjsf/bootstrap-4"
import validator from "@rjsf/validator-ajv8"
import axios from "axios"
import { useEffect, useState } from "react"

const Form = withTheme(Bootstrap4Theme);
const Form = withTheme(Bootstrap4Theme)

export default function ConfigEditor(props: { url: any }) {
const [schema, setSchema] = useState<any>()
Expand All @@ -28,10 +28,13 @@ export default function ConfigEditor(props: { url: any }) {

return (
<div className="config-editor">
<Form schema={schema} liveValidate={true} validator={validator}/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossOrigin="anonymous"/>
<Form schema={schema} liveValidate={true} validator={validator} />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossOrigin="anonymous"
/>
</div>
)
}

0 comments on commit d384450

Please sign in to comment.