diff --git a/pages/modules/[module].tsx b/pages/modules/[module].tsx index d1aa6c242048..3972567dbea3 100644 --- a/pages/modules/[module].tsx +++ b/pages/modules/[module].tsx @@ -204,56 +204,73 @@ const ModulePage: NextPage = ({
- - Direct ({versionInfo.moduleInfo.dependencies.filter((d) => !d.dev).length || 'None'}){' '} + + Direct ( + {versionInfo.moduleInfo.dependencies.filter( + (d) => !d.dev + ).length || 'None'} + ){' '} at version {selectedVersion}
    - {versionInfo.moduleInfo.dependencies.filter((d) => !d.dev).map((dependency) => ( - -
  • -
    - {dependency.version} -
    -
    {dependency.module}
    -
  • - - ))} - {versionInfo.moduleInfo.dependencies.filter((d) => !d.dev).length === 0 && ( - No dependencies - )} + {versionInfo.moduleInfo.dependencies + .filter((d) => !d.dev) + .map((dependency) => ( + +
  • +
    + {dependency.version} +
    +
    {dependency.module}
    +
  • + + ))} + {versionInfo.moduleInfo.dependencies.filter((d) => !d.dev) + .length === 0 && No dependencies}
- - - Dev Dependencies - ({versionInfo.moduleInfo.dependencies.filter((d) => d.dev).length || 'None'}){' '} + + Dev Dependencies ( + {versionInfo.moduleInfo.dependencies.filter( + (d) => d.dev + ).length || 'None'} + ){' '}
    - {versionInfo.moduleInfo.dependencies.filter((d) => d.dev).map((dependency) => ( - -
  • -
    - {dependency.version} -
    -
    {dependency.module}
    -
  • - - ))} + {versionInfo.moduleInfo.dependencies + .filter((d) => d.dev) + .map((dependency) => ( + +
  • +
    + {dependency.version} +
    +
    {dependency.module}
    +
  • + + ))} {versionInfo.moduleInfo.dependencies.length === 0 && ( No dependencies )} @@ -263,8 +280,15 @@ const ModulePage: NextPage = ({
    - - Dependents {shownReverseDependencies.length > 0 ? `(${shownReverseDependencies.length})` : ''} + + Dependents{' '} + {shownReverseDependencies.length > 0 + ? `(${shownReverseDependencies.length})` + : ''}