create-app: remove unnecessary core-compat-api usage
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@backstage/cli": "^{{ version '@backstage/cli'}}",
|
||||
"@backstage/core-compat-api": "^{{ version '@backstage/core-compat-api'}}",
|
||||
"@backstage/core-components": "^{{ version '@backstage/core-components'}}",
|
||||
"@backstage/core-plugin-api": "^{{ version '@backstage/core-plugin-api'}}",
|
||||
"@backstage/frontend-defaults": "^{{ version '@backstage/frontend-defaults'}}",
|
||||
|
||||
@@ -6,7 +6,6 @@ import {
|
||||
SidebarScrollWrapper,
|
||||
SidebarSpace,
|
||||
} from '@backstage/core-components';
|
||||
import { compatWrapper } from '@backstage/core-compat-api';
|
||||
import { NavContentBlueprint } from '@backstage/plugin-app-react';
|
||||
import { SidebarLogo } from './SidebarLogo';
|
||||
import MenuIcon from '@material-ui/icons/Menu';
|
||||
@@ -21,9 +20,11 @@ export const SidebarContent = NavContentBlueprint.make({
|
||||
const nav = navItems.withComponent(item => (
|
||||
<SidebarItem icon={() => item.icon} to={item.href} text={item.title} />
|
||||
));
|
||||
|
||||
// Skipped items
|
||||
nav.take('page:search');
|
||||
return compatWrapper(
|
||||
nav.take('page:search'); // Using search modal instead
|
||||
|
||||
return (
|
||||
<Sidebar>
|
||||
<SidebarLogo />
|
||||
<SidebarGroup label="Search" icon={<SearchIcon />} to="/search">
|
||||
@@ -49,7 +50,7 @@ export const SidebarContent = NavContentBlueprint.make({
|
||||
>
|
||||
{nav.take('page:user-settings')}
|
||||
</SidebarGroup>
|
||||
</Sidebar>,
|
||||
</Sidebar>
|
||||
);
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user