mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
fix some parameter output
This commit is contained in:
parent
42aae12e8a
commit
253cb14085
@ -28,16 +28,12 @@ const filterPropertyItems = (item, name) => {
|
|||||||
.map((item, index) => {
|
.map((item, index) => {
|
||||||
if (item.name === '@param') {
|
if (item.name === '@param') {
|
||||||
const splitText = item.text.split(' ')
|
const splitText = item.text.split(' ')
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div key={index} className={styles.parameter}>
|
<div key={index} className={styles.parameter}>
|
||||||
<code className={styles.param}>
|
<code className={styles.param}>
|
||||||
{splitText[0]}
|
{splitText[0]}
|
||||||
</code>
|
</code>
|
||||||
<code className={styles.parameterType}>
|
<p>{item.text.replace(splitText[0], '')}</p>
|
||||||
{splitText[2]}
|
|
||||||
</code>
|
|
||||||
<p>{splitText[1]}</p>
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user