diff --git a/components/Parameters.tsx b/components/Parameters.tsx index c9d0c51..77fbad1 100644 --- a/components/Parameters.tsx +++ b/components/Parameters.tsx @@ -40,10 +40,11 @@ interface ParameterBoxProps { function ParameterBox({name, value}: ParameterBoxProps) { if(value?.name == undefined) { + return ( {name} - {Object.entries(value).map(([name, value]) => { + {Object.entries(value).map(([name, value]: [string, any]) => { return })} @@ -52,7 +53,8 @@ function ParameterBox({name, value}: ParameterBoxProps) { return ( - {name} + {value.name.split(".").slice(0, -1).join(".")} + {name} {value.description} { value.components ? Components: {`[${value.components.join(", ")}]`} : undefined } @@ -66,6 +68,8 @@ function ParameterBox({name, value}: ParameterBoxProps) { export default function Parameters({parameters}) { parameters = formatParameters(parameters) + + console.log(parameters) return (