Skip to content

Commit

Permalink
admin: -300KB (duplicated dependency)
Browse files Browse the repository at this point in the history
  • Loading branch information
rejetto committed Dec 6, 2023
1 parent 00ed622 commit 0f63caf
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 486 deletions.
12 changes: 6 additions & 6 deletions admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"@hfs/mui-grid-form": "*",
"@hfs/shared": "*",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.14.8",
"@mui/lab": "^5.0.0-alpha.142",
"@mui/material": "^5.14.18",
"@mui/x-data-grid": "^6.13.0",
"@mui/x-date-pickers": "^6.16.0",
"@mui/x-tree-view": "^6.0.0-beta.0",
"@mui/icons-material": "^5.14.19",
"@mui/lab": "^5.0.0-alpha.154",
"@mui/material": "^5.14.19",
"@mui/x-data-grid": "^6.18.2",
"@mui/x-date-pickers": "^6.18.2",
"@mui/x-tree-view": "^6.17.0",
"@gregoranders/csv": "^0.0.12",
"dayjs": "^1.11.10",
"react": "^18.2.0",
Expand Down
4 changes: 2 additions & 2 deletions admin/src/AccountsPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { apiCall, useApiEx } from './api'
import { Alert, Box, Button, Card, CardContent, Grid, List, ListItem, ListItemText, Typography } from '@mui/material'
import { Close, Delete, DoNotDisturb, Group, MilitaryTech, Person, PersonAdd } from '@mui/icons-material'
import { IconBtn, iconTooltip, newDialog, reloadBtn, useBreakpoint, with_ } from './misc'
import { TreeItem, TreeView } from '@mui/lab'
import { TreeItem, TreeView } from '@mui/x-tree-view'
import MenuButton from './MenuButton'
import AccountForm from './AccountForm'
import md from './md'
Expand Down Expand Up @@ -101,7 +101,7 @@ export default function AccountsPage() {
) ),
h(Grid, { item: true, md: 5 },
!list?.length && h(Alert, { severity: 'info' }, md`To access administration <u>remotely</u> you will need to create a user account with admin permission`),
h(TreeView, {
h(TreeView<true>, { // true because it's not detecting multiSelect correctly (ts495)
multiSelect: true,
sx: { pr: 4, pb: 2, minWidth: '15em' },
selected: selectionMode ? sel : [],
Expand Down
Loading

0 comments on commit 0f63caf

Please sign in to comment.