mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 21:54:53 +03:00
feat: add placeholder if no paths or webhooks
This commit is contained in:
parent
e4383ae40b
commit
24c02e3c52
|
@ -15,7 +15,7 @@ export class ContentItems extends React.Component<{
|
||||||
render() {
|
render() {
|
||||||
const items = this.props.items;
|
const items = this.props.items;
|
||||||
if (items.length === 0) {
|
if (items.length === 0) {
|
||||||
return null;
|
return <MiddlePanel compact={false}>Cannot find path or webhooks items</MiddlePanel>;
|
||||||
}
|
}
|
||||||
return items.map(item => {
|
return items.map(item => {
|
||||||
return <ContentItem key={item.id} item={item} />;
|
return <ContentItem key={item.id} item={item} />;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user