Remove deprecated code
This commit is contained in:
		@@ -13,8 +13,7 @@ import {
 | 
				
			|||||||
  List,
 | 
					  List,
 | 
				
			||||||
  ListItemButton,
 | 
					  ListItemButton,
 | 
				
			||||||
  ListItemIcon,
 | 
					  ListItemIcon,
 | 
				
			||||||
  ListItemSecondaryAction,
 | 
					  ListItemText
 | 
				
			||||||
  ListItemText,
 | 
					 | 
				
			||||||
} from "@mui/material";
 | 
					} from "@mui/material";
 | 
				
			||||||
import { Outlet, useLocation } from "react-router-dom";
 | 
					import { Outlet, useLocation } from "react-router-dom";
 | 
				
			||||||
import { RouterLink } from "./RouterLink";
 | 
					import { RouterLink } from "./RouterLink";
 | 
				
			||||||
@@ -95,7 +94,6 @@ function NavLink(p: {
 | 
				
			|||||||
  icon: React.ReactElement;
 | 
					  icon: React.ReactElement;
 | 
				
			||||||
  uri: string;
 | 
					  uri: string;
 | 
				
			||||||
  label: string;
 | 
					  label: string;
 | 
				
			||||||
  secondaryAction?: React.ReactElement;
 | 
					 | 
				
			||||||
}): React.ReactElement {
 | 
					}): React.ReactElement {
 | 
				
			||||||
  const location = useLocation();
 | 
					  const location = useLocation();
 | 
				
			||||||
  return (
 | 
					  return (
 | 
				
			||||||
@@ -103,9 +101,6 @@ function NavLink(p: {
 | 
				
			|||||||
      <ListItemButton selected={p.uri === location.pathname}>
 | 
					      <ListItemButton selected={p.uri === location.pathname}>
 | 
				
			||||||
        <ListItemIcon>{p.icon}</ListItemIcon>
 | 
					        <ListItemIcon>{p.icon}</ListItemIcon>
 | 
				
			||||||
        <ListItemText primary={p.label} />
 | 
					        <ListItemText primary={p.label} />
 | 
				
			||||||
        {p.secondaryAction && (
 | 
					 | 
				
			||||||
          <ListItemSecondaryAction>{p.secondaryAction}</ListItemSecondaryAction>
 | 
					 | 
				
			||||||
        )}
 | 
					 | 
				
			||||||
      </ListItemButton>
 | 
					      </ListItemButton>
 | 
				
			||||||
    </RouterLink>
 | 
					    </RouterLink>
 | 
				
			||||||
  );
 | 
					  );
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user