address comments

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2021-03-26 11:31:36 +01:00
parent 9f48b548c0
commit bc1c734b28
5 changed files with 22 additions and 12 deletions
@@ -28,7 +28,7 @@ type Props = {
};
export const ApiDefinitionCard = (_: Props) => {
const entity = useEntity<ApiEntity>().entity;
const { entity } = useEntity<ApiEntity>();
const config = useApi(apiDocsConfigRef);
const { getApiDefinitionWidget } = config;