From 165879aba36cd494b3bc72da36165c90325ec498 Mon Sep 17 00:00:00 2001 From: CJ Cenizal Date: Mon, 23 Aug 2021 19:35:08 -0700 Subject: [PATCH] Remove unused render_app.tsx. --- .../public/application/render_app.tsx | 22 ------------------- 1 file changed, 22 deletions(-) delete mode 100644 x-pack/plugins/upgrade_assistant/public/application/render_app.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/render_app.tsx b/x-pack/plugins/upgrade_assistant/public/application/render_app.tsx deleted file mode 100644 index 248e6961a74e5..0000000000000 --- a/x-pack/plugins/upgrade_assistant/public/application/render_app.tsx +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import React from 'react'; -import { render, unmountComponentAtNode } from 'react-dom'; -import { AppDependencies, RootComponent } from './app'; - -interface BootDependencies extends AppDependencies { - element: HTMLElement; -} - -export const renderApp = (deps: BootDependencies) => { - const { element, ...appDependencies } = deps; - render(, element); - return () => { - unmountComponentAtNode(element); - }; -};