Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion client/src/Components/SelectionView/ClassView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ export default function ClassView(props: ClassViewProps): JSX.Element {
return (
<div>
<h1>{props.pythonClass.name}</h1>
<DocumentationText inputText={props.pythonClass.description}/>
{props.pythonClass.description ?
<DocumentationText inputText={props.pythonClass.description}/>
: <p className="pl-1rem text-muted">There is no documentation for this class.</p>
}
<SectionListViewItem title={"Superclasses"} inputElements={props.pythonClass.superclasses}/>
<SectionListViewItem title={"Decorators"} inputElements={props.pythonClass.decorators}/>
</div>
Expand Down
5 changes: 4 additions & 1 deletion client/src/Components/SelectionView/FunctionView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ export default function FunctionView(props: FunctionViewProps): JSX.Element {
return (
<div>
<h1>{props.pythonFunction.name}</h1>
<DocumentationText inputText={props.pythonFunction.description}/>
{props.pythonFunction.description ?
<DocumentationText inputText={props.pythonFunction.description}/>
: <p className="pl-1rem text-muted">There is no documentation for this function.</p>
}
<h2 className={"function-title"}>Parameters</h2>
<div className={"pl-1rem"}>
{
Expand Down