diff --git a/apps/contract-verification/src/app/App.css b/apps/contract-verification/src/app/App.css index 6b8ef2820e..293d3b1f13 100644 --- a/apps/contract-verification/src/app/App.css +++ b/apps/contract-verification/src/app/App.css @@ -1,7 +1,3 @@ body { margin: 0; } - -#root { - padding: 8px 14px; -} diff --git a/apps/contract-verification/src/app/components/NavMenu.tsx b/apps/contract-verification/src/app/components/NavMenu.tsx index e1a00020a7..f8c0594dd5 100644 --- a/apps/contract-verification/src/app/components/NavMenu.tsx +++ b/apps/contract-verification/src/app/components/NavMenu.tsx @@ -1,5 +1,4 @@ import React from 'react' - import { NavLink } from 'react-router-dom' interface NavItemProps { @@ -8,25 +7,25 @@ interface NavItemProps { title: string } -const NavItem = ({ to, icon, title }: NavItemProps) => { +const NavItem: React.FC = ({ to, icon, title }) => { return ( 'p-2 ' + (isActive ? 'bg-primary text-white' : 'bg-secondary')} + className={({ isActive }) => 'p-2 text-decoration-none ' + (isActive ? 'bg-primary text-white' : 'bg-secondary')} // state={from} > -
-
{icon}
-
{title}
-
+ + {icon} + {title} +
) } export const NavMenu = () => { return ( -