diff --git a/src/components/ParserOpenRPC/DetailsBox/RenderParams.tsx b/src/components/ParserOpenRPC/DetailsBox/RenderParams.tsx
index 94a5d40b985..bb42f3b3392 100644
--- a/src/components/ParserOpenRPC/DetailsBox/RenderParams.tsx
+++ b/src/components/ParserOpenRPC/DetailsBox/RenderParams.tsx
@@ -150,8 +150,9 @@ export const renderParamSchemas = (inputSchema, schemas) => {
<>
{inputSchema.map((item, i) => {
return (
-
+
{renderSchema(item, schemas, item.name)}
+ {i < inputSchema.length - 1 &&
}
);
})}
diff --git a/src/components/ParserOpenRPC/DetailsBox/index.tsx b/src/components/ParserOpenRPC/DetailsBox/index.tsx
index 1f2b642a570..0c5d48bd838 100644
--- a/src/components/ParserOpenRPC/DetailsBox/index.tsx
+++ b/src/components/ParserOpenRPC/DetailsBox/index.tsx
@@ -49,13 +49,19 @@ export default function DetailsBox({
)}
{method}
{summary !== null && (
-
+
Summary:
-
+
+
+
)}
{description !== null && (
-
+
+
+
)}
{extraContent &&
{extraContent}
}
Parameters
- {params.length === 0 ? (
-
This method does not accept any parameters
- ) : (
- <>{params && renderParamSchemas(params, components)}>
- )}
+
+ {params.length === 0 ? (
+
+ This method doesn't accept any parameters.
+
+ ) : (
+ params && renderParamSchemas(params, components)
+ )}
+
Returns
- {result?.description && (
-
-
-
- )}
- {result && renderResultSchemas(result, components)}
+
+ {result?.description && (
+
+
+
+ )}
+ {result && renderResultSchemas(result, components)}
+
>
);
}
diff --git a/src/components/ParserOpenRPC/DetailsBox/styles.module.css b/src/components/ParserOpenRPC/DetailsBox/styles.module.css
index c987038ca28..2ac856902e8 100644
--- a/src/components/ParserOpenRPC/DetailsBox/styles.module.css
+++ b/src/components/ParserOpenRPC/DetailsBox/styles.module.css
@@ -74,3 +74,23 @@
border-radius: 6px;
background-color: #ffcdd2;
}
+
+.summaryText {
+ font-style: italic;
+ color: #6a737d;
+ font-weight: 400;
+}
+
+.paramContainer {
+ border: 1px solid #848c96;
+ border-radius: 8px;
+ padding: 1rem;
+ margin-top: 1rem;
+}
+
+.paramSeparator {
+ border: 0;
+ border-top: 1px solid #848c96;
+ margin: 1rem 0;
+ width: 100%;
+}