Skip to content

Commit

Permalink
rm unnecessary items
Browse files Browse the repository at this point in the history
  • Loading branch information
pszafer committed Jan 13, 2025
1 parent 330e313 commit 88e0ef9
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions frontend/src/components/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,25 +87,7 @@ export default function Navigation() {
);
}

const SideMenuItems = ({deviceName, version}: {deviceName: string | null, version: string | null}) => {
return (
<div className="grid grid-cols-2 ml-2 lg:ml-4">
{deviceName && (
<>
<div className='text-sm opacity-80'>boneIO name:</div>
<div className='text-sm justify-self-end'>{deviceName}</div>
</>
)}
{version && (
<>
<div className='text-sm opacity-80'>App version:</div>
<div className='text-sm justify-self-end'>{version}</div>
</>
)}
</div>
)}

function Menu({ children, sideMenu = false }: { children?: React.ReactNode, sideMenu?: boolean }) {
function Menu({ sideMenu = false }: { sideMenu?: boolean }) {
const navigate = useNavigate();

const location = useLocation();
Expand Down

0 comments on commit 88e0ef9

Please sign in to comment.