diff --git a/src/components/ConfigSchemaModal/config-schema-moda.type.ts b/src/components/ConfigSchemaModal/config-schema-moda.type.ts new file mode 100644 index 0000000..3a9b15b --- /dev/null +++ b/src/components/ConfigSchemaModal/config-schema-moda.type.ts @@ -0,0 +1,6 @@ +import { ModalPropsType } from '@widgets/Modal/modal.type.ts' + +export interface ConfigSchemaModalPropsType + extends Omit { + schema: JSONSchema +} diff --git a/src/components/ConfigSchemaModal/config-schema-modal.scss b/src/components/ConfigSchemaModal/config-schema-modal.scss new file mode 100644 index 0000000..dca2c0d --- /dev/null +++ b/src/components/ConfigSchemaModal/config-schema-modal.scss @@ -0,0 +1,11 @@ +@import "src/constants/style/styleConst"; + +.config-schema-modal { + .modal__wrap { + min-width: 880px; + } + + .json-schema-view { + padding: $basic-padding + } +} diff --git a/src/components/ConfigSchemaModal/index.tsx b/src/components/ConfigSchemaModal/index.tsx new file mode 100644 index 0000000..194a2e1 --- /dev/null +++ b/src/components/ConfigSchemaModal/index.tsx @@ -0,0 +1,30 @@ +import { JsonSchemaViewer } from '@stoplight/json-schema-viewer' +import { FC } from 'react' + +import Modal from '@widgets/Modal' + +import { ConfigSchemaModalPropsType } from '@components/ConfigSchemaModal/config-schema-moda.type.ts' + +import './config-schema-modal.scss' + +const ConfigSchemaModal: FC = ({ + open, + onClose, + schema +}) => { + return ( +
+ + + +
+ ) +} + +export default ConfigSchemaModal