Skip to content

Commit

Permalink
removed unnecessary file
Browse files Browse the repository at this point in the history
Signed-off-by: Yulong Ruan <[email protected]>
  • Loading branch information
ruanyl committed Mar 15, 2024
1 parent c827387 commit 8b8d7c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
5 changes: 3 additions & 2 deletions src/plugins/workspace/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
*/

import type { Subscription } from 'rxjs';
import React from 'react';

import { Plugin, CoreStart, CoreSetup } from '../../../core/public';
import { getWorkspaceIdFromUrl } from '../../../core/public/utils';
import { WorkspaceClient } from './workspace_client';
import { renderWorkspaceMenu } from './render_workspace_menu';
import { WorkspaceMenu } from './components/workspace_menu/workspace_menu';

export class WorkspacePlugin implements Plugin<{}, {}, {}> {
private coreStart?: CoreStart;
Expand Down Expand Up @@ -47,7 +48,7 @@ export class WorkspacePlugin implements Plugin<{}, {}, {}> {
if (!this.coreStart) {
return null;

Check warning on line 49 in src/plugins/workspace/public/plugin.ts

View check run for this annotation

Codecov / codecov/patch

src/plugins/workspace/public/plugin.ts#L49

Added line #L49 was not covered by tests
}
return renderWorkspaceMenu(this.coreStart);
return React.createElement(WorkspaceMenu, { coreStart: this.coreStart });

Check warning on line 51 in src/plugins/workspace/public/plugin.ts

View check run for this annotation

Codecov / codecov/patch

src/plugins/workspace/public/plugin.ts#L51

Added line #L51 was not covered by tests
});

return {};
Expand Down
12 changes: 0 additions & 12 deletions src/plugins/workspace/public/render_workspace_menu.tsx

This file was deleted.

0 comments on commit 8b8d7c7

Please sign in to comment.