Skip to content

Commit

Permalink
Refactor sidebar link color logic
Browse files Browse the repository at this point in the history
  • Loading branch information
yoelmarain committed Sep 27, 2024
1 parent 2588ba2 commit e350a16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions FrontAdmin/src/components/NavBar/SidebarContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ export function SidebarContent({ onClose, LINK_ITEMS, ...rest }: SidebarProps) {
title={link.title}
color={
location.pathname.startsWith('/admin/' + link.url)
? 'secundary'
:
location.pathname.startsWith('/alumnos/' + link.url)
? 'secundary'
: 'white'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const DrawerInformar: React.FC<DrawerInformarProps> = ({ isOpen, onClose, cuotas
window.open(googleFormUrl, '_blank');

showToast('Pago informado', 'El pago se ha informado correctamente, continuar en el google forms', 'success');

// onRefresh();
} catch (error) {
console.error('Error:', error);
Expand Down

0 comments on commit e350a16

Please sign in to comment.