mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
UI: Add hooks to sidebar for players to attach custom content (#2651)
This commit is contained in:
@@ -359,6 +359,7 @@ export function SidebarRoot(props: { page: Page }): React.ReactElement {
|
||||
canStaneksGift && { key_: Page.StaneksGift, icon: DeveloperBoardIcon },
|
||||
]}
|
||||
/>
|
||||
<Typography id="sidebar-extra-hook-0"></Typography>
|
||||
<Divider />
|
||||
<SidebarAccordion
|
||||
key_="Character"
|
||||
@@ -386,6 +387,7 @@ export function SidebarRoot(props: { page: Page }): React.ReactElement {
|
||||
canOpenGrafting && { key_: Page.Grafting, icon: BiotechIcon },
|
||||
]}
|
||||
/>
|
||||
<Typography id="sidebar-extra-hook-1"></Typography>
|
||||
<Divider />
|
||||
<SidebarAccordion
|
||||
key_="World"
|
||||
@@ -411,6 +413,7 @@ export function SidebarRoot(props: { page: Page }): React.ReactElement {
|
||||
canDarkNet && { key_: Page.DarkNet, icon: ShareIcon },
|
||||
]}
|
||||
/>
|
||||
<Typography id="sidebar-extra-hook-2"></Typography>
|
||||
<Divider />
|
||||
<SidebarAccordion
|
||||
key_="Help"
|
||||
@@ -428,6 +431,7 @@ export function SidebarRoot(props: { page: Page }): React.ReactElement {
|
||||
process.env.NODE_ENV === "development" && { key_: Page.DevMenu, icon: DeveloperBoardIcon },
|
||||
]}
|
||||
/>
|
||||
<Typography id="sidebar-extra-hook-3"></Typography>
|
||||
</List>
|
||||
</Drawer>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user