Skip to content

Commit

Permalink
chore: updated nui dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tabarra committed Oct 3, 2024
1 parent 828b5d9 commit 6e64659
Show file tree
Hide file tree
Showing 4 changed files with 675 additions and 439 deletions.
22 changes: 11 additions & 11 deletions nui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@
"author": "André Tabarra",
"license": "MIT",
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@mui/icons-material": "^5.15.15",
"@mui/material": "5.15.15",
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@mui/icons-material": "^6.1.2",
"@mui/material": "6.1.2",
"notistack": "^3.0.1",
"react-polyglot": "^0.7.2",
"recoil": "^0.7.7"
},
"devDependencies": {
"@types/node-polyglot": "^2.5.0",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react-swc": "^3.6.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"vite": "^5.2.9",
"vite-tsconfig-paths": "^4.3.2"
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react-swc": "^3.7.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"vite": "^5.4.8",
"vite-tsconfig-paths": "^5.0.1"
}
}
12 changes: 6 additions & 6 deletions nui/src/components/MainPage/MainPageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -521,23 +521,23 @@ export const MainPageList: React.FC = () => {

return (
// add pb={2} if we don't have that arrow at the bottom
<Box>
(<Box>
<StyledList>
{menuListItems.map((item, index) =>
item.isMultiAction ? (
// @ts-ignore
<MenuListItemMulti
(<MenuListItemMulti
key={index}
selected={curSelected === index}
{...item}
/>
/>)
) : (
// @ts-ignore
<MenuListItem
(<MenuListItem
key={index}
selected={curSelected === index}
{...item}
/>
/>)
)
)}
</StyledList>
Expand All @@ -557,6 +557,6 @@ export const MainPageList: React.FC = () => {
>
v{serverCtx.txAdminVersion}
</Typography> */}
</Box>
</Box>)
);
};
9 changes: 5 additions & 4 deletions nui/src/components/MainPage/MenuListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
Box,
BoxProps,
ListItem,
ListItemButton,
ListItemIcon,
ListItemSecondaryAction,
ListItemText,
Expand Down Expand Up @@ -113,7 +114,7 @@ export const MenuListItem: React.FC<MenuListItemProps> = memo(

return (
<Root ref={divRef}>
<ListItem
<ListItemButton
onClick={() => onSelect()}
className={isUserAllowed ? classes.root : classes.rootDisabled}
dense
Expand All @@ -126,7 +127,7 @@ export const MenuListItem: React.FC<MenuListItemProps> = memo(
primary: classes.overrideText,
}}
/>
</ListItem>
</ListItemButton>
</Root>
);
}
Expand Down Expand Up @@ -240,7 +241,7 @@ export const MenuListItemMulti: React.FC<MenuListItemMultiProps> = memo(

return (
<Root ref={divRef}>
<ListItem
<ListItemButton
className={isUserAllowed ? classes.root : classes.rootDisabled}
dense
selected={selected}
Expand All @@ -264,7 +265,7 @@ export const MenuListItemMulti: React.FC<MenuListItemMultiProps> = memo(
<ListItemSecondaryAction>
<Code className={classes.icon} />
</ListItemSecondaryAction>
</ListItem>
</ListItemButton>
</Root>
);
}
Expand Down
Loading

0 comments on commit 6e64659

Please sign in to comment.