2024-05-20 13:33:14: merge [main:cbc2424bba8b53605d0eef5e6716b20406f9b312];
This commit is contained in:
1 parent
98ad434b36
commit
a922f7e914
53 files changed
+1811
-3261
No files matched your search
@@ -1,12 +1,13 @@
|
||||
import { JsonSchemaViewer } from '@stoplight/json-schema-viewer'
|
||||
import { FC } from 'react'
|
||||
|
||||
import JsonSchemaViewer from '@widgets/JSONViewer'
|
||||
import Modal from '@widgets/Modal'
|
||||
|
||||
import { ConfigSchemaModalPropsType } from '@components/ConfigSchemaModal/config-schema-moda.type.ts'
|
||||
|
||||
import './config-schema-modal.scss'
|
||||
|
||||
|
||||
const ConfigSchemaModal: FC<ConfigSchemaModalPropsType> = ({
|
||||
open,
|
||||
onClose,
|
||||
@@ -15,13 +16,7 @@ const ConfigSchemaModal: FC<ConfigSchemaModalPropsType> = ({
|
||||
return (
|
||||
<div className="config-schema-modal">
|
||||
<Modal title="Текущая схема конфигурации" open={open} onClose={onClose}>
|
||||
<JsonSchemaViewer
|
||||
viewMode="view"
|
||||
className="json-schema-view"
|
||||
schema={schema}
|
||||
emptyText="No schema defined"
|
||||
defaultExpandedDepth={99}
|
||||
/>
|
||||
<JsonSchemaViewer schema={schema} />
|
||||
</Modal>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user