Skip to content

Commit 29221ec

Browse files
committed
feat: remove sidebar deploy&revert buttons
1 parent 8a0e6d1 commit 29221ec

File tree

4 files changed

+0
-188
lines changed

4 files changed

+0
-188
lines changed

src/components/NavConfig.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ export default function NavConfig() {
2020
}
2121
const anchor = ca ? generateDownloadLink(downloadOpts) : ''
2222
return [
23-
{
24-
subheader: 'actions',
25-
items: [
26-
{ title: 'Deploy Changes', path: '/deploychanges', icon: getIcon('deploy_icon.svg') },
27-
{ title: 'Revert Changes', path: '/revertchanges', icon: getIcon('revert_icon.svg') },
28-
],
29-
},
3023
{
3124
subheader: 'platform',
3225
items: [

src/components/SidebarDeployButton.tsx

Lines changed: 0 additions & 85 deletions
This file was deleted.

src/components/SidebarItem.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,12 @@ import { NavItemProps } from './SidebarTypes'
99
//
1010
import Iconify from './Iconify'
1111
import { ListItemIconStyle, ListItemStyle, ListItemStyleProps, ListItemTextStyle } from './SidebarStyle'
12-
import SidebarDeployButton from './SidebarDeployButton'
13-
import SidebarRevertButton from './SidebarRevertButton'
1412
import SidebarShellButton from './SidebarShellButton'
1513

1614
// ----------------------------------------------------------------------
1715

1816
// HANDLE SHOW ITEM BY ROLE
1917
const ListItem = forwardRef<HTMLDivElement & HTMLAnchorElement, ListItemStyleProps>((props, ref) => (
20-
// <RoleBasedGuard roles={props.roles}>
21-
22-
// </RoleBasedGuard>
2318
<ListItemStyle {...props} ref={ref}>
2419
{props.children}
2520
</ListItemStyle>
@@ -66,8 +61,6 @@ export function SidebarItemRoot({ item, isCollapse, open = false, active, onOpen
6661
)
6762
}
6863

69-
if (title === 'Deploy Changes') return <SidebarDeployButton item={item}>{renderContent}</SidebarDeployButton>
70-
if (title === 'Revert Changes') return <SidebarRevertButton item={item}>{renderContent}</SidebarRevertButton>
7164
if (title === 'Shell') {
7265
return (
7366
<SidebarShellButton disabled={disabled} item={item}>

src/components/SidebarRevertButton.tsx

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)