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) => {
|
||||
if (item.name === '@param') {
|
||||
const splitText = item.text.split(' ')
|
||||
|
||||
return (
|
||||
<div key={index} className={styles.parameter}>
|
||||
<code className={styles.param}>
|
||||
{splitText[0]}
|
||||
</code>
|
||||
<code className={styles.parameterType}>
|
||||
{splitText[2]}
|
||||
</code>
|
||||
<p>{splitText[1]}</p>
|
||||
<p>{item.text.replace(splitText[0], '')}</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user