Skip to content
Snippets Groups Projects
Commit 8c0ec005 authored by Princelle Maxime's avatar Princelle Maxime :gay_pride_flag:
Browse files

:zap:️ remove unnecessary params in functions

parent bf84ed4f
Branches
2 merge requests!4Add CI deployment,!1Persistance
......@@ -30,7 +30,7 @@ const Main = ({ path, title, subTitle, children }: LayoutProps) => {
let navigate = useNavigate();
const userNavigation = [
{ name: 'Se déconnecter', action: (e) => {return auth.signout(() => navigate("/"))} },
{ name: 'Se déconnecter', action: () => {return auth.signout(() => navigate("/"))} },
];
const [sidebarOpen, setSidebarOpen] = useState(false);
......@@ -93,7 +93,7 @@ const Main = ({ path, title, subTitle, children }: LayoutProps) => {
<Menu.Item key={item.name}>
{({ active }) => (
<button
onClick={(e) => {item.action(e)}}
onClick={() => {item.action()}}
className={classNames(active ? 'bg-gray-100' : '', 'block px-4 py-2 text-sm text-gray-700 w-full')}
>
{item.name}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment