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