fixes typos, text should be specific to a component (#1955)

This commit is contained in:
Arpit 2022-01-27 16:20:41 +05:30 committed by GitHub
parent 7af79c091e
commit 4f2d5907ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -431,6 +431,7 @@ export const EventManager = ({
}
const events = component.component.definition.events || [];
const componentName = componentMeta.name ? componentMeta.name : 'query';
if (events.length === 0) {
return (
@ -444,7 +445,9 @@ export const EventManager = ({
</button>
</div>
<div className="text-center">
<small className="color-disabled">This table doesn&apos;t have any events</small>
<small className="color-disabled">
This {componentName.toLowerCase()} doesn&apos;t have any event handlers
</small>
</div>
</>
);