chore: update props types to use PropsWithChildren

Signed-off-by: Oleg S <97077423+RobotSail@users.noreply.github.com>
This commit is contained in:
Oleg S
2023-08-31 16:07:55 -04:00
parent cc2efe286a
commit 13f3b3491e
25 changed files with 77 additions and 61 deletions
@@ -14,7 +14,12 @@
* limitations under the License.
*/
import React, { ComponentType, ReactNode, ReactElement } from 'react';
import React, {
ComponentType,
ReactNode,
ReactElement,
PropsWithChildren,
} from 'react';
import { MemoryRouter } from 'react-router-dom';
import { Route } from 'react-router-dom';
import { UnifiedThemeProvider, themes } from '@backstage/theme';
@@ -226,7 +231,7 @@ export function wrapInTestApp(
* @public
*/
export async function renderInTestApp(
Component: ComponentType | ReactNode,
Component: ComponentType<PropsWithChildren<{}>> | ReactNode,
options: TestAppOptions = {},
): Promise<RenderResult> {
let wrappedElement: React.ReactElement;