@@ -101,7 +101,7 @@ const FilterDetailContent = ({
}}
schema={argSchema}
/>
-
+
);
})}
@@ -133,7 +133,7 @@ const FilterDetailContent = ({
)}
-
+
);
};
@@ -178,7 +178,7 @@ export const TemplateFilters = ({
>
{name}
- {React.cloneElement(baseLink, {
+ {cloneElement(baseLink, {
to: `${baseLink.props.to}#${fragment}`,
})}
diff --git a/plugins/scaffolder/src/components/TemplatingExtensionsPage/TemplateGlobals.tsx b/plugins/scaffolder/src/components/TemplatingExtensionsPage/TemplateGlobals.tsx
index 329f7b9742..3ee367e009 100644
--- a/plugins/scaffolder/src/components/TemplatingExtensionsPage/TemplateGlobals.tsx
+++ b/plugins/scaffolder/src/components/TemplatingExtensionsPage/TemplateGlobals.tsx
@@ -26,7 +26,7 @@ import { ClassNameMap } from '@material-ui/core/styles/withStyles';
import Typography from '@material-ui/core/Typography';
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import classNames from 'classnames';
-import React, { ReactElement, useState } from 'react';
+import { cloneElement, Fragment, ReactElement, useState } from 'react';
import { scaffolderTranslationRef } from '../../translation';
import { Expanded, RenderSchema, SchemaRenderContext } from '../RenderSchema';
import { ScaffolderUsageExamplesTable } from '../ScaffolderUsageExamplesTable';
@@ -60,7 +60,7 @@ const FunctionDetailContent = ({
headings: [
],
};
return (
-
+
{fn.description && }
{schema?.arguments?.length && (
@@ -71,7 +71,7 @@ const FunctionDetailContent = ({
const [argSchema, required] = inspectFunctionArgSchema(arg);
return (
-
+
@@ -89,7 +89,7 @@ const FunctionDetailContent = ({
}}
schema={argSchema}
/>
-
+
);
})}
@@ -121,7 +121,7 @@ const FunctionDetailContent = ({
)}
-
+
);
};
@@ -166,7 +166,7 @@ export const TemplateGlobalFunctions = ({
>
{name}
- {React.cloneElement(baseLink, {
+ {cloneElement(baseLink, {
to: `${baseLink.props.to}#${fragment}`,
})}
@@ -218,7 +218,7 @@ export const TemplateGlobalValues = ({
>
{name}
- {React.cloneElement(baseLink, {
+ {cloneElement(baseLink, {
to: `${baseLink.props.to}#${fragment}`,
})}
{gv.description && }