hospital portal
This commit is contained in:
23
frontend/hospital-portal/src/theme/overrides/TreeView.tsx
Executable file
23
frontend/hospital-portal/src/theme/overrides/TreeView.tsx
Executable file
@@ -0,0 +1,23 @@
|
||||
import { Theme } from '@mui/material/styles';
|
||||
//
|
||||
import { TreeViewCollapseIcon, TreeViewExpandIcon, TreeViewEndIcon } from './CustomIcons';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
export default function TreeView(theme: Theme) {
|
||||
return {
|
||||
MuiTreeView: {
|
||||
defaultProps: {
|
||||
defaultCollapseIcon: <TreeViewCollapseIcon sx={{ width: 20, height: 20 }} />,
|
||||
defaultExpandIcon: <TreeViewExpandIcon sx={{ width: 20, height: 20 }} />,
|
||||
defaultEndIcon: <TreeViewEndIcon sx={{ color: 'text.secondary', width: 20, height: 20 }} />,
|
||||
},
|
||||
},
|
||||
MuiTreeItem: {
|
||||
styleOverrides: {
|
||||
label: { ...theme.typography.body2 },
|
||||
iconContainer: { width: 'auto' },
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user